填空题
下列程序的输出结果是
[12]
。
#include<iostream. h>
#include<string. h>
void main()
char b[30];
strcpy(&b[0], "XY");
strcpy(&b[1]," YZW");
strcpy(&b[2]," ZXY");
cout<<b(<end1;
【参考答案】
XYZXY
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
写出下列程序的运行结果 [11] 。 #include<iostream. h> void func(double x, int &part1, double &part2) part1=int(x)+500: part2=(x+500-part1)*100; void main( ) int n; double x, f; x=1001. 0103; func (x, n, f): cout<< Part 1= <<n<< , part2= <<f<<end1
点击查看答案
填空题
以下程序段给数组A的所有元素输入数据,请填空。 # include<iostream. h> void main () int a[10], i; i=0; while (i<10) cin>> [8]
点击查看答案
相关试题
一个抽象类的派生类可以实例化的必需条件是...
请分析下面的程序并给出该程序的执行结果 ...
构造函数与析构函数所调用的虚函烽是所在类...