• 2022-05-26 问题

    已知对学生记录的描述为: 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;

  • 2022-05-26 问题

    已知对学生记录的描述为:[br][/br] 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: irthday.year=1995;birthday.month=11;birthday.day=12; D: stu.birthday.year=1995;stu.birthday.month=11;stu.birthday.day=12;

    已知对学生记录的描述为:[br][/br] 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: irthday.year=1995;birthday.month=11;birthday.day=12; D: stu.birthday.year=1995;stu.birthday.month=11;stu.birthday.day=12;

  • 2021-04-14 问题

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

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

  • 2022-06-14 问题

    已知对学生记录的描述为:设变量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;

    已知对学生记录的描述为:设变量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;

  • 2022-06-16 问题

    以下程序的运行结果是 。 struct date { int year; int month; int day; }; struct student{ char name[10]; char sex; struct date birthday; }stu; 结构体变量stu所占字节数为______

    以下程序的运行结果是 。 struct date { int year; int month; int day; }; struct student{ char name[10]; char sex; struct date birthday; }stu; 结构体变量stu所占字节数为______

  • 2022-10-27 问题

    程序:class Birthday{int year;int month;int day;public Birthday(int year,int month,int day){year = year; month = month; day = day;}public static void main(String[] args){Birthday birth = new Birthday(1980,10,22); System.out.println(year);}}程序运行后的输出是哪项? A: 1980 B: 10 C: 22 D: 0 E: 编译出错

    程序:class Birthday{int year;int month;int day;public Birthday(int year,int month,int day){year = year; month = month; day = day;}public static void main(String[] args){Birthday birth = new Birthday(1980,10,22); System.out.println(year);}}程序运行后的输出是哪项? A: 1980 B: 10 C: 22 D: 0 E: 编译出错

  • 2022-06-17 问题

    定义如下结构体来描述一个人的基本情况: struct date {int year; int month; int day; }; struct person {char name[20]; char sex; struct date birthday; }man;如果某人的生日是1988年10月9日,下列对生日的正确赋值是 。 A: man·birthday·year=1988 man·birthday·.month=10 man·birthday·day=9 B: birthday·year=1988birthday·month=10birthday·day=9 C: man·year=1988man·month=10man·day=9 D: year=1988 month=10 day=9

    定义如下结构体来描述一个人的基本情况: struct date {int year; int month; int day; }; struct person {char name[20]; char sex; struct date birthday; }man;如果某人的生日是1988年10月9日,下列对生日的正确赋值是 。 A: man·birthday·year=1988 man·birthday·.month=10 man·birthday·day=9 B: birthday·year=1988birthday·month=10birthday·day=9 C: man·year=1988man·month=10man·day=9 D: year=1988 month=10 day=9

  • 2022-05-26 问题

    中国大学MOOC: 已有定义 struct date{ int year; int month; int day; }d; struct student{ char name[20]; struct date birthday; }stu;对学生的出生年赋值的语句正确的是________。

    中国大学MOOC: 已有定义 struct date{ int year; int month; int day; }d; struct student{ char name[20]; struct date birthday; }stu;对学生的出生年赋值的语句正确的是________。

  • 2022-06-19 问题

    The fifth day of the first lunar month is the birthday of the God of Wealth, and people welcome his arrival on this day. 未知类型:{'label': 'questionDesc', 'content': '以下哪个选项与题干意思一致?', 'isMemberControl': 0, 'type': 181} A: The fifth day of the first solar month is the birthday of the God of Wealth, and people welcome his arrival on this day. B: People welcome the arrival of the God of Wealth on the fifth day of the first lunar month, which is his birthday. C: The fifth day of the first lunar month is the birthday of the God of Poverty, and people welcome his arrival on this day.

    The fifth day of the first lunar month is the birthday of the God of Wealth, and people welcome his arrival on this day. 未知类型:{'label': 'questionDesc', 'content': '以下哪个选项与题干意思一致?', 'isMemberControl': 0, 'type': 181} A: The fifth day of the first solar month is the birthday of the God of Wealth, and people welcome his arrival on this day. B: People welcome the arrival of the God of Wealth on the fifth day of the first lunar month, which is his birthday. C: The fifth day of the first lunar month is the birthday of the God of Poverty, and people welcome his arrival on this day.

  • 2021-04-14 问题

    访问结构体成员的语句:stu.birthday.year,表示在stu结构体变量中有一个嵌套的结构体成员birthday,birthday有一个结构体成员year。

    访问结构体成员的语句:stu.birthday.year,表示在stu结构体变量中有一个嵌套的结构体成员birthday,birthday有一个结构体成员year。

  • 1 2 3 4 5 6 7 8 9 10