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

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

下列程序段的输出结果是_____。

cout < < fixed < < 509.123456789 < < endl;


参考答案

更多 “ 下列程序段的输出结果是_____。cout < < fixed < < 509.123456789 < < endl; ” 相关考题
考题 有如下程序段:char C[20]="examination";C[4]=0;cout<<c<<endl;这个程序的输出结果是______。

考题 ( 27 )有如下程序:#includeusing namespace std;class test {private:int a;public:test () {cout ” constructor ” ENDL;}test ( int a ) {coutAENDL;}test ( const test & _test ){a=_testa;cout ” copy constructor ” ENDL;}test () {cout ” destructor ” ENDL;}};int main ()}test A ( 3 )return0;运行时输出的结果是A ) 3B ) constructordestruclorC ) copy constructordstructorD ) 3destruclor

考题 下列程序段的输出结果是【15】 。cout

考题 以下程序执行后输出的结果是【】。 include include using namespace std; int 以下程序执行后输出的结果是【 】。include<iostream>include<fstream>using namespace std;int main(){ofstream ofile("D:\\temp.txt");if(!ofile){cout<<"temp.txt cannot open"<<endl;return 0;}ofile<<"This is a book" <<" " <<54321<<endl;ofile.close();ifstream ifile("D:\\temp.txt");if(!ifile){cout<<"temp.txt cannot open" <<endl;return 0;}charstr[40];ifile >> str;ifile.close();cout<<Str<<endl;return 1;}

考题 下列程序的输出结果是【】。 inClude rsing namespace std; template T fun( 下列程序的输出结果是【 】。inClude<iostream>rsing namespace std;template<typename T>T fun(Ta,Tb){retum(a<=b)?a:b;)int main(){cout<<fun(3,6)<<','<<fun(3.14F,6.28F)<<endl; .return 0;}

考题 下列程序段的输出结果是【 】。cout << fixed<<509.123456789<<end1;

考题 下列程序的输出结果是______。 include using namespace std; void fun(int rf) { 下列程序的输出结果是______。include<iostream>using namespace std;void fun(int rf){rf*=2;}int main(){int num=500;fun(num);cout<<num<<endl;return 0;}

考题 下面程序运行输出的结果是【】。 include using namespace std; int main(){char a[]="C 下面程序运行输出的结果是【 】。include <iostream>using namespace std;int main(){char a[]="Chinese";a[3]='\0';cout<<a<<endl;return 0;}

考题 下列程序的输出结果是______。 include using namespace std; int main() {int data=l; 下列程序的输出结果是______。include<iostream>using namespace std;int main(){int data=l;int r = data;data+=5;r+=5;cout<<data<<endl;return 0;}

考题 以下程序的输出结果是_____。 include class object {private:int val; public:objec 以下程序的输出结果是_____。include<iostream.h>class object{ private:int val;public:object( ) ;object(int i) ;~object( ) ;};object: :object( ){ val=0;cout < < "Default constructor for object" < < endl;}object: :object(int i){ val=i;cout < < "Constructor for object" < < val < < endl;}object: :~object( ){ cout < < "Destructor for object" < < val < < endl;}class container{ private:object one;object two;int data;public:container( ) ;container(int i,int j,int k) ;~container( ) ;};container: :container( ){ data=0;cout < < "Default constructor for container" < < endl;}container: :container(int i,int j,int k) :two(i) ,one(j){ data=k;cout < < "Constructor for container" < < endl;}container: :~container( ){ cout < < "Destructor for container" < < endl;}void main( ){ container anObj(5,6,10) ;}

考题 下列程序的输出结果是()。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**

考题 下列程序的输出结果是【】。 inClude using namespace std; int main() {int i=5;int r=i;r=7;cout<<i<<endl;return0;}

考题 有以下程序段,其输出的结果是______。int x,y,z;X=y=z=0;++x‖++y ++z;cout<<x<<","<<y<<","<<z<<endl;

考题 以下程序的输出结果是()。includevoid func(char**m) {++m:cout 以下程序的输出结果是( )。 #include<iostream.h> void func(char**m) { ++m: cout<<*m<<endl; } void main() { static char*a[]={"MORNING","AFTERTOON","EVENING"}; char**n; n=a: func(n); }A.为空B.MORNINGC.AFTERTOOND.EVENING

考题 下面程序的输出结果是includeclass A{public: A( ) {cout 下面程序的输出结果是 #include<iostream.h> class A { public: A( ) {cout < < "construtA" < < endl;} Virtual~A( ) {cout < < "destructA" < < endl;}}; class B: public A { }; class C:public A { }; class D:public B,public C { }; void main( ) { D d;}A.constructAB.constructAC.constructAD.constructA destructA constructA constructA constructA destructA constructA constrnctA destructA destructA constructA destructA destructA destructA destrctA destructA destructA

考题 下列程序的运行结果是______。include class Base { public: void f(int x){cout 下列程序的运行结果是______。include<iostream.h>class Base{public:void f(int x){cout<<“Base:”<<x<<endl;});class Derived:public Base{public:void f(char*str){cout<<“Derived:”<<str<<endl;}};void main(void){Base*pd=ne

考题 以下程序的输出结果是_____。 include void fun( ) {static int a=0; a+=2;cout 以下程序的输出结果是_____。include<iostream.h>void fun( ){ static int a=0;a+=2;cout < < a < < " ";}void main( ){ int cc;for(cc=1;cc<4;cc++)fun( ) ;cout < < endl;}

考题 下列程序段的输出结果是includevoid fun(int * x,int * y){cout 下列程序段的输出结果是 #include<iostream.h> void fun(int * x,int * y) { cout << * X << * y; *X=3; *y=4; } void main() { int x=1,y=2; fun(y,x); cout << X << y<<endl; {A.2143B.1212C.1234D.2112

考题 下列程序的输出结果是【】。 include void main() { int i(1),j(2),k(3),a(10); if(!i 下列程序的输出结果是【 】。include<iostream.h>void main(){int i(1),j(2),k(3),a(10);if(!i)a--;else if(j)if(k)a=5;elsea=6;a++;cout<<a<<endl;if(i<j)if(i!=3)if(!k)a=1;else if(k)a=5;6+=2;cout<<a<<endl;

考题 下列程序的输出结果是【】。 include using namespace std; int main(){ int i=3; int r=i; r=5;cout<<i<<endl;return 0;}

考题 有如下程序main( ){int n=9;while(n>6){n- -;cout<<n<<endl;)}该程序段的输出结果是A.987B.876C.8765D.9876

考题 有以下程序main( ){ int a=5,b=4,c=3,d=2;if(a>b>c)cout<<d<<endl;else if((c-1=d)==1)cout<<d+1<<endl;elsecout<<d+2<<endl;}执行后输出结果是A.2B.3C.4D.编译时有错,无结果

考题 如下程序段运行时的输出结果是 int i=4;int J=1; int main( ){ inti=8,j=i; cout<<i<<j<<endl; }A.44B.41C.88D.81

考题 若有如下程序: #includeiostream usingnamespaeestd; classTestClass { public: voidwho(){cout"TestClass"endl;} }; classTestClassl:publicTestClass { public: voidwho(){cout"TestClassl"endl;}}; intmain() { TestClass*P; TestClasslobj1; p=&obj1; p-who(); retum0; } 则该程序运行后的输出结果是( )。A.TestClasslB.TestClassC.0D.无输出

考题 有如下程序: #inCludeiostream using namespaCe std; Class test{ private: int a; publiC: test( ){Cout”ConstruCtor”endl;} test(int A.{Coutaendl;} test(Const test_test){ a=test.a: Cout”Copy ConstruCtor”endl: } test( ){Cout”destruCtor”endl;} }; int main( ){ test A(3); return 0; } 执行这个程序的输出结果是( )。A.3B.ConstruCtor destruCtorC.Copy ConstruCtor destruCtorD.3 destruCtor

考题 以下程序段输出的结果是( )。 char str[]="BCDE",*ptr=str; cout<<*(ptr+4)<<endl;A.0B.69C.字符E的地址D.一个空字符

考题 以下程序的执行结果是______. include c1ass A { public: virtual void funl () 以下程序的执行结果是______.include<iostream.h>c1ass A{public:virtual void funl () { cout<<"A fun1"<<endl;}virtual void fun2 () {cout<<"A fun2"<<endl;void fun3 () {cout<<" A fun 3 "<<endl:)void fun4 () {cout<<" A fun4 "<<endl:}