单项选择题
有如下程序:
#include <iostream>
#include <iomanip>
using namespace std;
int main()
cout.fill('*');
cout.width(6);
cout.fill('#');
cout<<123<<endl;
return 0;
执行后的输出结果是( )。
A.###123
B.123###
C.***123
D.123***
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
设有以下说明和定义: #include <iostream.h> Void main() typedef union long i;int k[5]; char c; DATE; struct date int cat; DATE cow; double dog; too; DATE max; 则下列语句的执行结果是( )。 cout<<(sizeof(struct date)+sizeof(max))<<endl;
A.26
B.52
C.18
D.8
点击查看答案
单项选择题
有如下程序 #include <iostream> #include <iomanip> using namespace std; int main() cout<<setprecision(3)<<fixed<<setfill('*')<<setw(8); cout<<12.345<<______34.567; return 0; 若程序的输出是: **12.345**34.567 则程序中下划线处遗漏的操作符是( )。
A.setprecision(3)
B.fixed
C.setfill('*')
D.setw(8)
点击查看答案
相关试题
虚基类说明格式如下:slass派生类名___...
下面程序的执行结果是______。 #in...
有如下程序: #include <iostream> u...
阅读下面程序: #include <iostream.h...
如下类定义中包含了构造函数和拷贝构造函数...