填空题
下列程序的执行结果为
1
。 #include<iostream.h> void main
2
{ cout.fill( '' * '' ); cout.width(10); cout<<"hello"<<endl; =
1、
【正确答案】
1、* * * * * hello
【答案解析】
本题考查的是C++语言的流输出操作,cout中包括的函数fill---|||________|||---和width---|||________|||---分 别实现填充和设定显示长度的功能。
提交答案
关闭