black

CPP考试

登录

单项选择题

1)#include
2)using namespace std;
3)int main()
4){
5)int a,b,result;
6)cout<<"please input two numbers:\n";
7)cin>>a>>b;
8)result=3*a-2*b+1;
9)cout<<"resultis" << result << endl;
10)} 

程序第5行中,”\n”的含义是:()

A、代表’\’和’n’两个字符
B、回车,即回到当前行的行首
C、回车换行,即回到下一行首列
D、制表符

相关考题

单项选择题 该程序第5行中cout是哪一个头文件里定义的()。

单项选择题 程序的第5行中的cout表示:()

单项选择题 程序的入口是第几行:()

All Rights Reserved 版权所有©易学考试网(yxkao.com)

备案号:湘ICP备2022003000号-3