问答题
已知有表示学生信息的结构体变量stu定义为:
struct Date { int year, month, day; };
struct Student
{ int num; char name[20]; struct Date birth; };
struct Student s,*ps=&s;
将s中year成员赋值为1990的语句为_________________。
【参考答案】
(1)
s.birth.year=1990
或 ps->......
(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
点击查看答案
