题目内容

写出执行完下列程序段以后指定的变量的值: bool x=true,y=false,z=false; x=x&&y||z; y=x||y&&z; z=!(x!=y)||(y==z); 则y=______。

查看答案
更多问题

行下列语句后,输出结果为______。 int x=0,y=2,z=3; switch(x) { case 0:switch(y) { case 1:cout<<'*';break; case 2:cout<<'%';break; } case 1:switch(z) { case 1:cout<<'$';break; case 2:cout<<'*';break; default:cout<<'#'; } }

执行下列代码 int a=29,b=100; cout <

执行下列代码 cout <<″Hex:″<< hex << 255; 程序的输出结果为____________。

执行下列代码int b=100;cout<<"Hex:"<

答案查题题库