网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

程序cout<< setw(3)<< 25<< oct<< 25<< hex<< endl;的输出结果是()。

  • A、25 25
  • B、25 31
  • C、31 19
  • D、25 19

参考答案

更多 “程序cout setw(3) 25 oct 25 hex endl;的输出结果是()。A、25 25B、25 31C、31 19D、25 19” 相关考题
考题 ( 26 )有如下程序#include#includeusing namespace std;int main( ){coutSETPRECISION(3)FIXEDSETFILL('*')SETW(8);cout12.345___________34.567;return 0;}若程序的输出是:**12.345**34.567则程序中下划线处遗漏的操作符是A ) setprecision(3)B ) fixedC ) setfill('*')D ) setw(8)

考题 有如下程序 include include using namespace std; int main( 有如下程序 #include<iostream> #include<iomanip> using namespace std; int main(){ cout<<setprecision(3)<<fixed<<setfill('*')<<setw(8); cout<<12.345<<_______<<34.567; return 0; } 若程序的输出是: ** 12.345**34.567 则程序中下划线处遗漏的操作符是A.setprecision(3)B.fixedC.setfill('*')D.setw(8)

考题 对于语句“cout<<setfill(*)<<setw(10)<<1<<serfill(*)<<setw(2)<<2;”的输出结果是( )。A.*********1*2B.********12C.*******1*2D.12********

考题 若语句: cout') 若语句: cout<<setfill('>')<<setw(5)<<3141512<<setw(5)<<"OK!"; 是程序中第一个输出语句,则输出结果是A.3141512>>OK!B.31415120K!>>C.414150K!>>D.31415>>OK!

考题 ( 34 )假定下列语句都是程序运行后首次执行的输出语句,其中输出结果与另外三条语句不同的语句是A ) coutsetfill ( '*' ) 123setw ( 9 ) 321;B ) coutsetfill ( '*' ) setw ( 6 ) left123setw ( 6 ) right321;C ) cout123setfill ( '*' ) setw ( 6 ) 321;D ) coutsetfill ( '*' ) SetW ( 9 ) left123321;

考题 下面程序的执行结果是______。 include include using namespace std; vo 下面程序的执行结果是______。include<iostream.h>include<iomanip.h>using namespace std;void main(){cout<<setfill('x')<<setw(10);cout<<"Hello"<<endl;}

考题 下列程序的执行结果是______。 include include using namespace std; vo 下列程序的执行结果是______。include<iostream.h>include<iomanip.h>using namespace std;voidmain(){cout<<setfill('x')<<setw(10);cout<<"Hello"<<end1;}

考题 有如下程序:include include using namespace std;int main(){cout.fill(' 有如下程序:#include <iostream>#include <iomanip>using namespace std;int main(){cout.fill('*');cout<<left<<setw(4)<<123<< "OK"<<end1;return 0;}执行这个程序的输出结果是( )。A.123*OKB.123*OK**C.*123OKD.*123**OK

考题 以下程序的执行结果是【】。 include include void pnnt(int n) { if (n!=0 以下程序的执行结果是【 】。include<iostream.h>include<iomanip.h>void pnnt(int n){if (n!=0){Print(n-1);for (int i=1;i<=n;i++)cout<<setw(3)<<i;cout<<endl;}}void main(){print(4);}

考题 阅读下列程序,并写程序运行结果【】。include void main() { for(int i=0;i 阅读下列程序,并写程序运行结果【 】。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' : ' ' );}

考题 下面程序的执行结果是【】。 include include using namespace std; void main( 下面程序的执行结果是【 】。include<iostream>include<iomanip>using namespace std;void main(){cout<<setfill('x')<<setw(10);cout<<"Hello"<<endl;}

考题 下列语句都是程序运行时的第1条输出语句,其中一条语句的输出效果与其他三条语句不同,该语句是( )。A) cout<<internal<<12345;B) cout<<left<<12345;C) cout<<right<<12345;D) cout<<setw(6)<<12345;A.B.C.D.

考题 下列程序的输出结果是()。ificludeusing namespace std;int main(){cout.fill('*');co 下列程序的输出结果是( )。 #ificlude<iostream> using namespace std; int main() { cout.fill('*'); cout.width(5); cout<<oct<<100<<endl; return 0; }A.**100B.**144C.100**D.144**

考题 若语句:cout') 若语句: cout<<seffill('>')<<setw(5)<<3141512<<sctw(5)<<"OK!"; 是程序中第1个输出语句,则输出结果是( )。A.3141512>>OK!B.31415120K!>>C.314150K!>>D.31415>>OK!

考题 若语句:cout') 若语句: cout<<setfill('>')<<setw(5)<<3141512<<setw(5)<<"OK!"; 是程序中第1个输出语句,则输出结果是A.3141512>>OK!B.31415120K!>>C.314150K!>>D.31415>>OK!

考题 下面程序的输出是:***********5.235.23***********请将下划线上遗漏的部分补充完整。include <iostream>include <iomanip>using namespace std:void main(){double i=5.23;cout<<______<<setw(14)<<icouu<<end1<<______<<setw(14)<<i;}

考题 假定下列语句都是程序运行后首次执行的输出语句,其中输出结果与另外3条语句不同的语句是A.coutsetfill(‘*’)123setw(9)321;B.cOUtsetfill(‘*’)setw(6)left123setw(6)right321;C.COUt123setfill(‘*’)setw(6)321;D.coutsetfill(‘*’)setw(9)left123321;

考题 下列语句分别是不同程序中的第一个输入输出语句。若去掉其中的“<<left”,输出效果将发生变化的是A.cout<<left<<setfill('*')<<357;B.cout<<left<<setw(5)<<357;C.cout<<left<<setw(5)<<"ABCDE";D.cout<<left<<"ABCDE";

考题 下列表达式中,错误的是( )。A.cout<<setw(5);B.cout<<fill('#');C.cout.setf(ios::uppercase);D.cin.fill('#');

考题 有如下程序: include include using namespace std; int ma 有如下程序: #include <iostream> #include <iomanip> using namespace std; int main() { cout.fill('*'); cout << left << setw(4) << 123 << "OK" << endl; return 0; }A.123*OKB.123*OK**C.*123OKD.*123**OK

考题 有如下程序include include using namespace std;int main( ){cout 有如下程序 #include <iostream> #include <iomanip> using namespace std; int main( ){ cout<<setprecision(3)<<fixed<<setfill('*')<<setw(8); cout<<12.345<<__________<<34.567; return 0; } 若程序的输出是: **12.345**34.567 则程序中下划线处遗漏的操作符是( )。A.setprecision(3)B.fixedC.setfill('*')D.setw(8)

考题 有如下4个语句: ①cout<<‘A’<<setfill(‘*’)<<1eft<<setw(7)<<‘B’<<endl; ②cout<<setrill(‘*’)((1eft<<setw(7)<<‘A’<<‘B’<<endl; ③cout<<‘A’<<serfill(‘*’)<<right<<setw(7)<<‘B’<<endl; ④cout<<setfill(‘x’)<<right<<setw(7)<<‘A’<<‘B’<<endl;A.①和③B.①和④C.②和③D.②和④ 其中能显示A* * * * * *B的是( )。

考题 语句cout<<setfill("")<<setw(4)<<setfill('i')<<setw(7)<<'m'<<end1;的输出结果为( )。A.iiiimmmmnmmB.iiiimmmmmmC.iiiimmmD.iiiiimm

考题 有如下四个语句: ①cout<<A<<seifill(*)<<left<<setw(7)<<B<<endl; ②cout<<setfill(*)<<left<<setw(7)<<A<<B<<endl; ③cout<<A<<serfill(*)<<right<<setw(7)<<B<<endl; ④cout<<setfill(*)<<right<<setw(7)<<A<<B<<endl; 其中能显示A******B的是( )。A.①和③B.①和④C.②和③D.②和④

考题 有以下程序:includeusing namespace std;int main(){int n=100;cout 有以下程序: #include<iostream> using namespace std; int main(){ int n=100; cout<<dec<<n<<","; cout<<oct<<n<<","; cout<<hex<<n<<endl; return 0; } 程序运行后输出的结果是( )。A.100,100,100B.64,144,100C.100,144,64D.100,64,144

考题 阅读下面程序:include int main (){ cout 阅读下面程序: #include <iomanip. h> int main () { cout<<setfill( '*' )<<setw( 8 ); cout<<setprecision( 5 )<<3.1415926<<end1; return 0; } 则该程序的输出结果是 ( )。A.3.1415**B.***3.1416C.3.141593D.**3.14159

考题 单选题程序cout setw(3) 25 oct 25 hex endl;的输出结果是()。A 25 25B 25 31C 31 19D 25 19