下列程序的输出结果是includevoid main(){char*str="12123434";int x1=0,x2=0,x3=0 下列程序的输出结果是 #include<iostream.h> void main() {char*str="12123434"; int x1=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!='\0';i++) switch(str[i]) {case'1':x4++; case'2':X3++; case'3':X2++; case'4':X1++; } cout<<X1<<","<A.8,6,4,1B.8,6,3,2C.8,8,4,1D.8,6,4,2
下列程序的输出结果是includevoid main(){char*str="12123434";int x1=0,x2=0,x3=0
下列程序的输出结果是 #include<iostream.h> void main() {char*str="12123434"; int x1=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!='\0';i++) switch(str[i]) {case'1':x4++; case'2':X3++; case'3':X2++; case'4':X1++; } cout<<X1<<","<
A.8,6,4,1
B.8,6,3,2
C.8,8,4,1
D.8,6,4,2
相关考题:
下列程序的输出结果是()。includevoid main(){char*str=”12123434”;int x1=0,x2=0,x 下列程序的输出结果是( )。 #include<iostream.h> void main() {char*str=”12123434”; int x1=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!=’\0’;i++) switch(str[i]) {case’1’:x4++; case’2’:x3++; case’3’:x2++; case’4’:xl++; ) cout<<xl<<“,”<<x2<<A.8,6,4,1B.8,6,3,2C.8,8,4,lD.8,6,4,2
下列程序的输出结果是( )。includeiostream.hvoidmain() (char*str=12123434iostream.hvoidmain()(char*str=12123434;intx1=0,x2=0,x3=0,x4=0,i;for(i=0;str[i]!=\0;i++)switch(str[i]){case1:x4++;case2:x3++;case3:x2++;case4:x1++;}coutx1,x2:,x3,x4;}A.8,6,4,1B.8,6,3,2C.8,8,4,1D.8,6.4,2
下列程序的输出结果是( )。#includeiostream.h voidmain() (char*str="12123434"; intx1=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!=\0;i++) switch(str[i]) {case1:x4++; case2:x3++; case3:x2++; case4:x1++; } coutx1","x2:","x3 ","x4; }A.8,6,4,1B.8,6,3,2C.8,8,4,1D.8,6.4,2
以下程序的输出结果是【 】。includeincludechar*fun(char*0{ char *p--t;retur 以下程序的输出结果是【 】。include <stdio.h>include <string.h>char *fun(char *0{ char *p--t;return (p+strlen(t)/2);}main(){ char *str="abcdefgh";str=ftm(str);puts(str);}
下列程序的输出结果是______。includeinclude using namespace std;void 下列程序的输出结果是______。include <iostream.h>include <cstring.h>using namespace std;void fun(const char*s,char C) {c=s[strlen (s)/2];}int main {){char str [] ="ABCDE";char ch=str[1];fun(str,sh);cout<<Ch;return 0;}
下列程序的输出结果是includevoid main( ){char*str="12123434";int xl=0,x2=0,x3= 下列程序的输出结果是 #include<iostream.h> void main( ) {char*str="12123434"; int xl=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!='\0';i++) switch(str[i]) {case'1':x4++; case'2':x3++; case'3':x2++; case'4':x1++; } cout<<x1<<","<<x2<<","<<x3<<","<<x4; }A.8,6,4,1B.8,6,3,2C.8,8,4,1D.8,6,4,2
下列程序的输出结果是includevoid main(){char*str="12123434"; int x1=0,x2=0,x3= 下列程序的输出结果是 #include<iostream.h> void main() { char*str="12123434"; int x1=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!=‘\0’;i++) switch(str[i]) { case'l':x4++; case'2':X3++; case'3':x2++; case'4':X1++; } cout << X1 << " ," << x2 << " ’" << x3 << " ," << X4; }A.8,6,4,1B.8,6,3,2C.8,8,4,1D.8,6,4,2
下列程序的输出结果是 #include void main( ) { char * str="12123434"; int x1=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!='\0';i++) switch(str[i]) { case'1':x4++; case'2':x3++; case'3':x2++; case'4':x1++; } cout < < x1 < < "," < < x2A.8,6,4,1B.8,6,3,2C.8,8,4,1D.8,6,4,2
下列程序的输出结果是______。 include int CalcDigital(char*str) { if(str= =NULL) 下列程序的输出结果是______。include<iostream.h>int CalcDigital(char*str){if(str= =NULL)return 0;int num_of_digital=0;for(int i=0;str{i]!=0x0;i++)if(str[i]<='9' str[i]>='0')num_of_digital++;return num_of_digital;}void main( ){char a[]="Beijing20080lympic";cout<<CalcDigital(a)<<endl;}