题目内容
(请给出正确答案)
[主观题]
当执行cout 语句输出endl 数据项时,将使C++显示输出屏幕上的光标从当前位置移动到________的开始位置。
查看答案
如果结果不匹配,请 联系老师 获取答案
A.4
B.3
C.2
D.1
下列程序输出的结果是__。
#include<iostream>usingnamespacestd;int__tmain()
{intnInteger=5,rInteger=nInteger;rInteger=nInteger+1;
cout<<<nInteger<<","<<rInteger<<endl;return0;}
A.678
B.789
C.567
D.无输出结果
A.i
B.c
C.Visual
D.C++
执行下列语句后的输出为_____。
intj=-1;
if(j<=1)printf("****/n");
elseprintf("%%%%/n");
A.30.5
B.3.5
C.332.5
D.8.5
下列语句序列执行后的输出结果是__________。
intm=5;
if(m++>5)printf("%d/n",m);
elseprintf("%d/n",--m);