题目内容

#include using namespace std;struct country { int num; char name[10]; }x[5]={1,"China",2,"USA",3,"France",4, "England",5, "Spanish"}; void main(){struct country *p;p=x+2;cout<num<<(*p).name[2]<

查看答案
更多问题

下面程序的运行结果是____。 #include using namespace std;struct KeyWord { char Key[20]; int ID; }kw[]={"void",1,"char",2,"int",3,"float",4,"double",5}; main() { cout<

运行下列程序段,输出结果是____。#include using namespace std;struct country { int num; char name[20]; }x[5]={1, "China", 2, "USA", 3, "France", 4, "England", 5, "Spanish"}; void main(){struct country *p; p=x+2; cout<num<<','<

运行下列程序,输出结果是____。#include using namespace std;struct contry { int num; char name[20]; }x[5]={1,"China",2,"USA",3,"France",4,"Englan",5,"Spanish"}; main() { int i; for (i=3;i<5;i++) cout<

有以下程序,程序运行后的输出结果是____。#include using namespace std;struct S{ int a,b;}data[2]={10,100,20,200};void main(){ S p=data[1];++(p.a); cout<< p.a;}

答案查题题库