单项选择题
执行语句:cout<<setfill('*')<<setw(10)<<setfill('#')<<left<<123<<"OK"<<endl;return 0;)后将输出( )。
A.123*******OK
B.123#######OK
C.123********OK********
D.123#######OK########
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
有如下程序: #include<iostream> using namespace std; class sample private: int x,y; public: sample(int i,int j) x=i; y=j; void disp() cout<< displ <<endl; void disp()const cout<< disp2 <<endl; ; int main() const sample a(1,2); a.disp(); return 0; 该程序运行后的输出结果是( )。
A.disp1
B.disp2
C.disp1 disp2
D.程序编译时出错
点击查看答案
单项选择题
下列语句 #include <iostream> using namespace std; void main() cout<<100.8989663<<''; cout<<fixed<<100.8989663<<''; cout<<scientific<<100.8989663<<''; 的输出结果为( )。
A.100.899 100.898966 1.008990e+002
B.100.8989663 100.898966 1.008990e+002
C.100.899 100.898966 1.008989e+002
D.100.899 100.8989663 1.008989e+002
点击查看答案
相关试题
下列程序中需要清理动态分配的数组,划线处...
有如下程序: #include<iostream> usi...
深度为5的满二叉树有______个叶子结点。
假定用户没有给一个名为MyClass的类定义析...
下列程序的输出结果是______。 #in...