网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
有如下程序
#include
#include
using namespace std;
int main(){
count<<12,345<<&NBSP;<<34,567;
return 0;
}
若程序的输出是:
**12.345**34.567
则程序中下划线处遗漏的操作符是______。
A.setprecision(3)
B.fixed
C.setfill(*)
D.stew(8)
参考答案
更多 “ 有如下程序#include#includeusing namespace std;int main(){count12,345NBSP;34,567;return 0;}若程序的输出是:**12.345**34.567则程序中下划线处遗漏的操作符是______。A.setprecision(3)B.fixedC.setfill(*)D.stew(8) ” 相关考题
考题
以下哪个资源定位器的写法是正确是?()A.http://www.wls.com/lt/lt.htmB.http:||www.wls.com/lt/lt.htmC.http://www.wls.com\lt\lt.htmD.http:||www.wls.com\lt\lt.htm
考题
有以下程序includemain(){int a=5,b=lt; t=(a
有以下程序 #include<stdio.h> main() { int a=5,b=lt; t=(a<<2)|b;printf("%d\n",t); } 程序运行后的输出结果是______。A.21B.11C.6D.1
考题
若有运算符:>;、一、<;<;、%、sizeof,则它们按优先级(由高至低)的正确排列顺序为( )。A.%、sizeof、>;、<;<;、=B.sizeof、%、>;、一、<;<;C.sizeof、<;<;、>;、%、=D.sizeof、%、<;<;、>;、=
考题
有如下程序: #includeiostream usingnamespacestd; classTest( public: Test( ){} Test(constTest8Lt){cout1;} }; Testfun(Test&u){Testt=U;returnt;} intmain( ){Testx,y;x=fun(y);return0;} 运行这个程序的输出结果是( )。A.无输出B.1C.1lD.111
考题
有以下程序:当执行程序时,按下列方式输入数据(从第l列开始,<;CR>;代表回车,注意:回车也是一个字符]12<;CR>;34<;CR>;则输出结果是( )。A.12B.123C.1234D.12343
考题
有以下程序段: inti,j,m=0; for(i=1;i<;=15;i+=4) for(j一3;j<;=19;j+=4)m++; printf(‘‘%d\n‘‘,m); 程序段的输出结果是( )。A.12B.15C.20D.25
考题
已知lt=[1,2,3],下面表达式能够修改lt为[1,2,3,4]的是A.lt+=4B.lt.append(4)C.lt.insert(3,4)D.lt.insert(-1,4)
热门标签
最新试卷