单项选择题
有以下程序
#include
void fun(int a,int b,int C)
a=456,b=567,c=678;
void main( )
int x=10,y=20,z=30;
fun(x,y,z);
cout < < x < < ’,’ < < y < <’,’ < < z < < end1;
输出结果是
A.30,20,10
B.10,20,30
C.456,567,678
D.678,567,456
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列程序的输出结果是 #include class Myclass public:Myclass(int i=0,intj=0) x=i; y=j; void show( ) cout < < x= < < x < < < y= < < y < < end1; void show( )const cout < < x= < < < < y=’ < < y < < end1; privated: int x; int y; ; void main( ) Myclass my1(3,4); const my2(7,8); my1.show( );my2.show( );
A.x=4,y=3;x=7,y=8
B.x=3,y=4;x=7,y=8
C.x=7,y=8;x=4,y=3
D.x=8,y=7;x=7,y=8
点击查看答案&解析
单项选择题
对于语句cout < < setfill('*') < < setw(10) < < 1 < < setfill('*') < < setw(2)< < 2;的输出结果是
A.* * * * * * * * * 1 * 2
B.* * * * * * * * 12
C.* * * * * * * 1 * 2
D.12 * * * * * * * *
点击查看答案&解析
相关试题
若要在C盘根目录下作为二进制文件打开文件t...
友元类的所有成员函数都是另一个类的 【1...
以下程序的输出结果是 【14】 。 #in...
表达式x.operator++( )还可写成 【...
下面程序的运行结果是 【8】 和 【9】...