题目内容

对于枚举类型的定义语句enum Color{Blue,Green=3,Black,White=6,Red};其中枚举常量Red的值为______。

查看答案
更多问题

下列语句的运行结果为____。#include using namespace std; struct COMPLEX{int x;int y;} cNum[2]={1,3,2,7};void main(){cout<< cNum[0].y*cNum[1].x<

下列程序的运行结果是____。#include using namespace std;union{int i;char x[2];}a;void main(){a.x[0] = 10; a.x[1] = 1;cout<

#include using namespace std;void main() { union{ /* 定义一个联合 */ int i; struct{ /* 在联合中定义一个结构 */ char first; char second; }half; }number; number.i=0x4241; /* 联合成员赋值 */ cout<

#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]<

答案查题题库