填空题
以下程序的运行结果是
【10】
。
#include<iostream>
#include<string>
using namespace std;
void main()
chara[10]="China",b[]="Chin",c[]="ese";
cout<<strlen(strcat(strcpy(a,b),c))<<endl;
【参考答案】
G
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序执行后输出的结果是 【11】 。 #include<iostream> using namespace std; int fac(int a,int b) return(b-a)*a; int main() int x=3,y=4,z=5,result; result=fac(fac(x,y),fac(x,z)); cout<<result<<endl; return 0;
点击查看答案&解析
填空题
以下程序的输出结果是 【8】 。 #include<iostream> using namespace std; int main() int sum,i; for(sum=0,i=1;i<5;i++)sum+=i; cout<<sum<<endl; return 0;
点击查看答案&解析
相关试题
从实现的角度划分,C++所支持的两种多态...
派生类中的成员不能直接访问基类中的 【1...
在C++中,打开一个文件,就是将这个文件...
若有定义:double a[3][5];那么数...