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