下列程序的输出结果为( )。 #include<iostream.h> #include<iomanip.h> void main() { cout.precision(4); cout<<123.127 cout<<" "<<123.46; }
A.123.1 123.4
B.123.1 123.46
C.123.127 123.46
D.123.1123.4
[单选题]下面程序的输出结果是()。includeincludevoid main(){char p1[10],p2[10下面程序的输出结果是( )。 #include<iostream.h> #include<string.h> void main() { char p1[10],p2[10]; strcpy(p1,”abc”); strcpy(p2,”ABC”); charsty[50]=“xyz”; strcpy(str+2,strcat(p1,p2)); cout<<str; }A.xyzabcA
[单选题]下面程序的输出结果是includeincludevoid main( ){char p1[10],p2[10]s下面程序的输出结果是 #include<iostream.h> #include<string.h> void main( ) { char p1[10],p2[10] strcpy(p1,"abc"); strcpy(p2,"ABC"); char str[50]="xyz"; strcpy(str+2,strcat(p1,p2)); cout<<str; }A.xyza
[单选题]下面程序的输出结果是includeincludevoid main( ){char p1[10],p2[10]s下面程序的输出结果是 #include<iostream.h> #include<string.h> void main( ) { char p1[10],p2[10] strcpy(p1,"abc"); strcpy(p2,"ABC"); char str[50]="xyz"; strcpy(str+2,strcat(p1,p2));A.xyzabcABCB.zabcAB
[单选题]下面程序的输出结果是includeincludevoid main(){char p1[10],P2[10];下面程序的输出结果是 #include<iostream.h> #include<string.h> void main() { char p1[10],P2[10]; strcpy(p1,"abc"); strcpy(p2,"ABC"); char str[50]="xyz"; strcpy(str+2,strcat(P1,p2)); cout<<six; }A.xyzab
[单选题]有以下程序:includeincludevoid main( ){char * p="abcde/0fghjik/0";c有以下程序: #include<string.h> #include<iostream.h> void main( ) { char * p="abcde/0fghjik/0"; cout < < strlen(p) ;} 程序运行后的输出结果是A.12B.15C.6D.5
[单选题]有以下程序includeincludevoid main( ){char*p="abcde/0fghjik/0"; cou有以下程序 #include<string.h> #include<iostream.h> void main( ) { char*p="abcde/0fghjik/0"; cout<<strlen(p);} 程序运行后的输出结果是A.12B.15C.6D.5
[单选题]有以下程序:includeincludevoid main(){cout.fill('*');cout.width(10有以下程序: #include<iostream.h> #include<iomanip.h> void main() { cout.fill('*'); cout.width(10); cout,<setiosflags(ios::left)<<123.45<<endl; } 程序执行后的输出结果是( )A.****123.45B.**123.45**C.123.45
[单选题]下面程序的输出结果是 include includevoid main( ) { char p1[10] ,p2下面程序的输出结果是#include<iostream.h>#include<string.h>void main( ){char p1[10] ,p2[10] ;strcpy(p1,"abc") ;strcpy(p2,"ABC") ;char str[50] ="xyz";strcpy(str+2,strcat(p1,p2) ) ;cout < < str;}A.xyza
[单选题]以下程序的执行结果是()。includeincludevoid fun(int n){if(n!=0){fun以下程序的执行结果是( )。 #include<iostream.h> #include<iomanip.h> void fun(int n) { if(n!=0) { fun(n-1); for(int i=1; i<=n; i++) cout<<setw(3)<<i; cout<<end1; } } void main() { fun(3); }A.0 0 1 0 1 2B.1
[单选题]下列程序的输出结果为includevoid main( ){char * a[ ]={"hello","the","world"};c下列程序的输出结果为 #include<iostream.h> void main( ) { char * a[ ]={"hello","the","world"}; char * * pa=a; pa++; cout <<*pa<<end1; }A.helloB.theC.worldD.hellotheworld