填空题
下面程序的输出是:
***********5.23
5.23***********
请将下划线上遗漏的部分补充完整。
#include<iostream>
#include<iomanip>
using namespace std;
void main()
double i=5.23;
cout<<
【14】
<<setw(14)<<i
cout<<endl<<
【15】
<<setw(14)<<i;
【参考答案】
[14]setfill(’*’) [15]left
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
假定A为一个类,则语句A(A &A) ;为该类 【12】 函数的原型说明。
点击查看答案&解析
填空题
在下面的程序的横线处填上适当的语句,是该程序的输出为12。 #include<iostream> using namespace std; class Base public: int a; Base(int i)a=i; ; class Derived:public Base int a; public: Derived(int x):Base(x),b(x+1) void show() 【11】 ; 输出基类数据成员a的值。 cout<<b<<endl; ; int main() Derived d(1); d.show(); return 0;
点击查看答案&解析
相关试题
下列程序将x、y和z按从小到大的顺序排列,...