网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
下面程序的结果为_____。 include void main( ) { int a=1,b=2; bool c=1; if((a>b)

下面程序的结果为_____。

include<iostream.h>

void main( )

{

int a=1,b=2;

bool c=1;

if((a>b) | | c) cout < < "tree" < < endl;

else

cout < < "false" < < endl;

}


参考答案

更多 “ 下面程序的结果为_____。 include void main( ) { int a=1,b=2; bool c=1; if((a>b) 下面程序的结果为_____。include<iostream.h>void main( ){int a=1,b=2;bool c=1;if((a>b) | | c) cout < < "tree" < < endl;elsecout < < "false" < < endl;} ” 相关考题
考题 下面程序的输出结果是【】。define MIN(a,b) (((a)void main(){int 下面程序的输出结果是【 】。define MIN(a,b) (((a)<(b))?a:b)include <iostream.h>void main(){int x= 3, y=5;cout<< MIN(x,y)<<end1;}

考题 下面程序的运行结果是includevoid fun(int * a,int * b){ int x= * a; * a = * b;* 下面程序的运行结果是 #include<iostream.h> void fun(int * a,int * b) { int x= * a; * a = * b; * b=x; cout <<*a<< *b<<""; } void main( 0 { int x =1,y =2; fun(x,y); cout<< x << y <<end1; }A.12 12B.12 21C.21 12D.21 21

考题 下面程序的运行结果是 include void fun(int * a,int * b) { int x= * a; * a= * 下面程序的运行结果是#include<iostream.h>void fun(int * a,int * b){int x= * a;* a= * b; * b=X;cout < < * a < < * b < <" ";}void main( ){int x=1,y=2;fun(x,y) ;cout < < X < < y < < endl;}A.12 12B.12 21C.21 12D.21 21

考题 下面程序运行时输出结果为______。 include include class Rect { public: Rect(int 下面程序运行时输出结果为______。include<iostream.h>includeclass Rect{public:Rect(int l, int w){length=l; width=w;)void Print(){cout<<"Area:"<<length*width<<end1;}void operator delete(void*p){free(p);}private:int length, width;};void main(){Rect *p;p=new Rect(5, 4);p->Print();delete p;}

考题 下列程序的运行结果为【】。 include void main(void) {int a=2,b=-1,c=2; if(a 下列程序的运行结果为【 】。include<iostream.h>void main(void){int a=2,b=-1,c=2;if(a<b)if(b<0)c=0;else c=c+1;cout<<c<<endl;}

考题 下面程序的输出结果是______。 include main() {char *p[]="BOOL","OPK","H","SP"};int 下面程序的输出结果是______。 #include<stdio.h> main() { char *p[]="BOOL","OPK","H","SP"}; int i; for(i=3;i>=0;i-,i-) printf("%c",*p[i]); printf("\n"); }A.SOB.SPC.SPOPKD.SHOB

考题 下面程序运行时输出结果为【】。 include include class Rect { public: Rec 下面程序运行时输出结果为【 】。include<iostream.h>include<malloc.h>class Rect{public:Rect(int1,int w)(length=1;width=w;)void Print(){cout<<"Area:"<<length *width<<endl;)void *operator new(size-t size){return malloc(size);}void operator delete(void *p){free(p)private:int length,width;};void main(){Rect*p;p=new Rect(5,4);p->Print();delete p;}

考题 下面程序的输出结果是______。 inc1ude main() {char*p[]={"BOOL","OPK","H","SP"};int 下面程序的输出结果是______。 #inc1ude<stdio.h> main() { char*p[]={"BOOL","OPK","H","SP"}; int i; for(i=3;i>=0;i-,i-) prinf("%c",*p[i]); print("\n") }A.SOB.SPC.SPOPKD.SHOB

考题 下面程序的结果为______。include void main() { int 3=1,b=2; bool c=1; if(a>b)||c 下面程序的结果为______。include<iostream.h>void main(){int 3=1,b=2;bool c=1;if(a>b)||c)cout<<“true”<<endl;elsecout<<“false”<<endl;}