喵查铺子
MOOC答案
学习通答案
智慧树答案
超星尔雅答案
热门题目
游戏推荐
编程杂谈
AI人工智能学习
flutter开发
登录
注册
用户名或电子邮箱地址
密码
记住我
快乐学习 一个网站喵查铺子(catpuzi.com)全搞定~
>
中国大学MOOC答案
>
下面程序的输出结果是( ).#includeusing namespace std;int main(){int a=2,b=-1,c=2;if (a<b) if (b<0) c=0;else c+=1;cout <<c<<endl;return 0;}
下面程序的输出结果是( ).#includeusing namespace std;int main(){int a=2,b=-1,c=2;if (a<b) if (b<0) c=0;else c+=1;cout <<c<<endl;return 0;}
中国大学MOOC答案
数据帝
2024-04-09
扫描二维码
-->
A、0
B、1
C、2
D、3
喵查答案:
2
喜欢 (
0
)
为了避免嵌套的if-else语句的二义性,C++语言规定else总是与( )组成配对关系。
执行语句序列int n;cin >> n;switch(n++){ case 1: case 2: cout << '1'; case 3: case 4: cout << '2'; break; default: cout << '3';}时,若键盘输入1,则屏幕显示( )。
关于作者:
数据帝
作者主页
没有相关文章!
暂无相关文章!