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)} 

程序的入口是第几行:()

A、第1行
B、第2行
C、第3行
D、第4行

相关考题

单项选择题 第3行的main()函数返回值的类型是:()

单项选择题 程序第2行会对哪条语句产生影响:()

单项选择题 该程序运行到第8行时,在屏幕上输入“3.2空格2.1再单击回车”,此时a的值是:()

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

备案号:湘ICP备2022003000号-3