填空题
cout<<’\n’还可以表示为
[14]
,cout. width(10)还可表示为
[15]
。
【参考答案】
[14]count<<end1; [15]count<<setw(10);
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
分析以下程序的执行结果 [12] 。#include <iostream. h>class S{int A[10];public:int &operator () (int);};int &S: :operator() (int x) {return A[x];}void main() {S a;int i,j;for (i=0; i<10; i++)a(i)=i*2;for (i=0; i<10; i++)cout<<a(i)<< ;cout<<end1; }
点击查看答案
填空题
阅读下列程序,并写程序运行结果 [13] 。#include<iomanip. h>void main() {for(int i=0;i<4;i++)cout<<end1<<setfill(’ ’)<<setw(4-i)<< ’0’<<setfill(’*’)<<setw(i+i)<<(i>0’ O’ : ’ ’ );}
点击查看答案&解析
相关试题
以下程序的输出结果是 [11] 。#incl...