有以下程序: #include<iostream.h> #include<iomanip.h> void main() { cout.fill('*'); cout.width(10); cout,<setiosflags(ios::left)<<123.45<<endl; } 程序执行后的输出结果是( )
A.****123.45
B.**123.45**
C.123.45****
D.***123.45*
第1题:
下列程序的执行结果为______。
include<iostream.h>
void main()
{
cout.fill(‘*’);
tout.width(10);
cout<<“hello”<<endl;
)
第2题:
有如下程序:#include <iostream>#include<iomanip>using namespace std;int main(){ cout.fill('*'); cout.width(6); cout.fill('#'); cout<<123<<end1; return 0;}执行后的输出结果是( )。
A.###123
B.123###
C.***123
D.123***
第3题:
有如下程序: #include <iostream> #include <iomanip> using namespace std; int main() { cout.fill('*'); cout.width(6); cout.fill('#'); cout<<123<<end1; return 0; } 执行生的输出结果是( )。
A. ###123
B.123###
C. ***123
D.123***
第4题:
有如下程序: #include <iostream> using namespace std; int main(){ cout.fill('*'); cout.width(6); cout.fill('#'); cout<<123<<end1; return 0;} 执行后的输出结果是
A.###123
B.123###
C.***123
D.123***
第5题:
有如下程序: #include<iostream> using namespace std; int main() { cout.fill('*'); cout.width (6); cout.fill('#'); cout<<123<<end1; return 0; }执行后的输出结果是______ 。
A.###123
B.123###
C.***123
D.123***
第6题:
有如下程序: #include<iostream> using namespace std; int main() { cout.fill('*'); cout.width(6); cout.fill('#'); cout<<888<<end1; return 0; } 的执行结果是( )。
A.###888
B.888###
C. ***888
D.888***
第7题:
下列程序的执行结果是______。
include<iostream.h>
include<iomanip.h>
using namespace std;
voidmain()
{
cout<<setfill('x')<<setw(10);
cout<<"Hello"<<end1;
}
第8题:
下面程序的执行结果是______。
include<iostream.h>
include<iomanip.h>
using namespace std;
void main()
{
cout<<setfill('x')<<setw(10);
cout<<"Hello"<<endl;
}
第9题:
下列程序的执行结果为【15】。
#include(iostream. h>
void main()
{
Cout.fill(’*’);
cout. width(10);
cout <<”hello”<
}