奥鹏作业答案 - 分忧网!奥鹏作业答案,奥鹏在线作业答案,奥鹏作业答案及毕业论文分忧

奥鹏作业答案,奥鹏在线作业答案,奥鹏在线考核_分忧网

当前位置: 主页 > 论文范文 >

若定义:float x; int a,b; 正确的switch语句是( )。

时间:2023-03-22 17:52来源:未知 作者:admin 点击:
10. 若定义:float x; int a,b; 正确的switch语句是( )。 A. switch (x) { case 1.0:cout<<”*\n”; case 2.0:cout<<”**\n”; } B. switch(x) { case 1.2:cout<<”*\n”; case 3:cout<<”**\
10. 若定义:float x; int a,b; 正确的switch语句是( )。
A. switch (x)
{ case 1.0:cout<<”*\n”;
case 2.0:cout<<”**\n”; }
B. switch(x)
{ case 1.2:cout<<”*\n”;
case 3:cout<<”**\n”; }
C. switch(a+b)
{ case 1:cout<<”*\n”;
case 1+2:cout<<”**\n”; }
D. switch(a+b)
{ case 1:cout<<”
(责任编辑:admin)有不懂可以加客服微信:vq800020900 咨询
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
猜您喜欢

提示信息×