單項(xiàng)選擇題

執(zhí)行下列C++語(yǔ)句:int x =2;switch (x ){case 1:cout <<“One”;break;case 2:cout <<“Two”;break;case 3:cout <<“Three”;break;default:cout <<“Error”;break;}顯示器上將顯示()。

A.Error
B.One
C.Two
D.Three

微信掃碼免費(fèi)搜題