填空题
以下程序的执行结果是______。
#include<iostream.h>
void main()
int x=5 y=2;
cout<<! (y==x/2)<<",";
cout<<(y!=x%3)<<",";
cout<<(x>0 && y<0=<<",";
cout<<(x!=y||x>=y)<<endl;
【参考答案】
0,0,0,1
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
下列程序中,划线处正确的语句是( )。 #include<iostream.h> Class Base Public: Void fun()cout<< Base::fun <<endl; ; Class Derived:public Base void fun() ______ 显示调用基类的函数fun() Cout<< Derived::fun <<endl; ;
A.fun()
B.Base.fun()
C.Base::fun()
D.Base->fun();
点击查看答案
单项选择题
以下程序的输出结果是( )。 #include<iostream.h> void main() int i,j,x=0; fof(i=0;i<2;i++= x++; for(j=0:j<3;j++= if(j%2)continue; x++; x++; cout<< x= <<X;=
A.x=4
B.x=8
C.x=6
D.x=12
点击查看答案
相关试题
cerr与cout的差别在于:cerr是______...
______使一个函数可以定义成对许多不...
模板使我们可以用一个代码段指定一组相关函...
为了便于对照检查,测试用例应由输入数据和...
operator是运算符重载时必须使用的关键字,...