单项选择题
下面程序的运行结果是
#include<iostream.h>
Void main( )
int num=1;
int &ref=num;
ref=ref+2;
cout < < num;
num=num+3;
cout < < ref < <endl;
A) 13 B) 16 C) 36 D) 33
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
以下程序中,错误的行为 ① #include<iostream.h> ② class A ③ ④ public: ⑤ int n=2; ⑥ A(int val) cout < < val < < endl; ⑦ ~A( ) ; ⑧ ; ⑨ void main( ) ⑩ (11) A a (0) ; (12) A) ⑤ B) ⑥ C) ⑦ D) ⑩
以下程序中,错误的行为
① #include<iostream.h>
② class A
③
④ public:
⑤ int n=2;
⑥ A(int val) cout < < val < < endl;
⑦ ~A( ) ;
⑧ ;
⑨ void main( )
⑩
(11) A a (0) ;
(12)
A) ⑤ B) ⑥ C) ⑦ D) ⑩
点击查看答案&解析
单项选择题
以下各选项组中,均是C++语言关键字的组是
A.public operator this
B.shod string static
C.it while>=
D.private cout printf
点击查看答案&解析
相关试题
cout. put(’A’) ;,还可以表示为 ...
在C++语言中,访问一个对象的成员所用的...
开发一个C++语言程序的步骤通常包括编辑...
假设int a=1,b=2;则表达式a+++-...
下面程序的输出结果为 。 #include<ios...