已知学生记录描述为 struct student { int no; char name[20]; char sex; struct { int year; int month; int day; } birth; }; struct student s;变量s中的“生日”应是“1985年4月4日”,下列对“生日”的正确赋值方式是______。A.year=1985;month=4;day=4;B.birth.year=1985;birth.month=4;birth.day=4;C.s.year=1985;s.month=4;s.day=4;D.s.birth.year=1985;s.birth.month=4;s.birth,day=4;

已知学生记录描述为 struct student { int no; char name[20]; char sex; struct { int year; int month; int day; } birth; }; struct student s;变量s中的“生日”应是“1985年4月4日”,下列对“生日”的正确赋值方式是______。

A.year=1985;month=4;day=4;

B.birth.year=1985;birth.month=4;birth.day=4;

C.s.year=1985;s.month=4;s.day=4;

D.s.birth.year=1985;s.birth.month=4;s.birth,day=4;


相关考题:

( 21 )已知函数 fun 的原型为int fun ( int,int,int ) ;下列重载函数原型中错误的是A ) char fun ( int,int ) ;B ) double fun ( int,int,double ) ;C ) int fun ( int,char* ) ;D ) float fun ( int, int, int ) ;

已知学生记录描述为:struct student{ int no;char name[20],sex;struct{ int year,month,day;} birth;};struct student s;设变量s中的"生日"是"1984年11月12日",对"birth"正确赋值的程序段是A.year=1984;month=11;day=12;B.s.year=1984;s.month=11;s.day=12;C.birth.year=1984;birth.month=11;birth.day=12;D.s.birth.year=1984;s.birth.month=11;s.birth.day=12;

下列函数不能和函数voidprint(char)构成重载的是() A、intprint(int);B、voidprint(char,char);C、intprint(char);D、voidprint(int,int);

教学管理数据库创建了如下四张表:CTEATE TABLE student(学号 CHAR(5) not null unique,姓名 CHAR(8),性别 CHAR(2),出生日期 DATETIME,班号 CHAR(5))CTEATE TABLE teacher(教师编号 CHAR(5) not null unique,姓名 CHAR(8),性别 CHAR(2),出生日期 DATETIME,职称 CHAR(6),系别 CHAR(10))CREATE TABLE course(课程号 CHAR(5) not null unique,课程名 CHAR(20),任课教师编号 CHAR(5))CREATE TABLE score(学号 CHAR(5),课程号 CHAR(5),分数 INT)请写出完成以下任务需要的SQL语句: 1) 检索score表中成绩在60-80之间的所有记录。2) 检索student表中所有姓王的学生记录。

已知学生记录描述为: struct student { int no; char name[20],sex; struct { int year,month,day; } birth; }; struct student s; 设变量s中的“生日”是“1984年11月12日”,对“birth”正确赋值的程序段是( )。A.year=1984;month=11;day=12;B.s.year=1984;s.month=11;s.day=12;C.birth.year=1984;birth.month=11;birth.day=12;D.s.birth.year=1984;s.birth.month=11;s.birth.day=12;

已知函数fun的原型为int fun(int,int,int);下列重载函数原型中错误的是A.char fun(int,int);B.double fun(int,int,double);C.int fun(int,char木);D.float fun(int,int,int);

若有以下定义,则对变量student1中“生日”的正确赋值方式是()。 struct student { int num; char name[20], sex; struct { int year, month, day; } birthday; } ; struct student student1;A.student1.birthday.year = 2003; student1.birthday.month = 5; student1.birthday.day = 1;#B.year = 2003; month = 5; day = 1;#C.birthday.year = 2003; birthday.month = 5; birthday.day = 1;#D.student1.year = 2003; student1.month = 5; student1.day = 1;

已知对学生记录的描述为: struct student { int num; char name[20],sex; struct{ int year,month,day; }birthday; } struct student stu; 设变量stu中的“生日”是“1995年11月12日”,对“birthday”正确赋值的程序是______。A.year=1995; month=11; day=12;B.stu.year=1995; stu.month=11; stu.day=12;C.birthday.year=1995; birthday.month=11; birthday.day=12;D.stu.birthday.year=1995; stu.birthday.month=11; stu.birthday.day=12;

已知对学生记录的描述为:  struct student  { int num;   char name[20],sex;    struct{ int year,month,day; }birthday;  };  struct student stu; 设变量stu中的"生日"是"1995年11月12日",对"birthday"正确赋值的程序是______。A.year=1995;month=11;day=12;B.stu.year=1995;stu.month=11;stu.day=12;C.birthday.year=1995;birthday.month=11;birthday.day=12;D.stu.birthday.year=1995;stu.birthday.month=11;stu.birthday.day=12;

已知对学生记录的描述为: struct student { int num; char name[20],sex; struct{ int year,month,day; }birthday; }; struct student stu; 设变量stu中的“生日”是“1995年11月12日”,对“birthday”正确赋值的程序是______。A.year=1995;month=11;day=12;B.stu.year=1995;stu.month=11;stu.day=12;C.birthday.year=1995;birthday.month=11;birthday.day=12;D.stu.birthday.year=1995;stu.birthday.month=11;stu.birthday.day=12;