【题目】 定义struct Student结构体类型,包括学号、姓名、性别、出生日期,其中出生日期为struct Date
B.struct 是结构体类型的关键字
C.struct student 是用户定义的结构体类型
D.num, score 都是结构体的成员名
A、cout< <s.score[1]+s.score[2]+s.score[3];>
B、cout< <s.score[0]+s.score[1]+s.score[2];>
C、cout< <s[0].score[0]+s[0].score[1]+s[0].score[2];>
D、cout< <score[0].s[1]+>
B.114
C.214
D.7
B.zhang 是结构体变量名
C.wang 是结构体类型名
D.num, name,score 都是结构体的成员名
B.student.name="高远";
C.student.age=19;
D.student.score=90;
A、A)a,2008
B、B)hangzhou,2008
C、C)i,2009
D、D)Tianjin,2009
A、struct student { int num; char name[20]; char sex; int score; } student1,student2;
B、struct { int num; char name[20]; char sex; int score; }student1, student2;
C、struct student { int num; /* 学号 */ char name[20]; /* 姓名 */ char sex; /* 性别 */ int score; /* 成绩 */ }; ...... struct student student1, student2;
D、struct student student1, student2; ...... struct student { int num; /* 学号 */ char name[20]; /* 姓名 */ char sex; /* 性别 */ int score; /* 成绩 */ };
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!