• 2022-06-17 问题

    若有以下定义,则对变量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;

    若有以下定义,则对变量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;

  • 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-06 问题

    When is Julia’s birthday When is Julia’s birthday A: The next day. B: The day after next. C: The day they had the talk.

    When is Julia’s birthday When is Julia’s birthday A: The next day. B: The day after next. C: The day they had the talk.

  • 2021-04-14 问题

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

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

  • 2021-04-14 问题

    9.若有以下定义,则对变量student1中“生日”的正确赋值方式是 struct student { int num; char name[20], sex; struct { int year, month, day; } birthday; } ; struct student student1;

    9.若有以下定义,则对变量student1中“生日”的正确赋值方式是 struct student { int num; char name[20], sex; struct { int year, month, day; } birthday; } ; struct student student1;

  • 2022-05-26 问题

    下面结构体的定义如下:struct student{ char name[32]; struct date{ int day; int month; int year; }birthday;};错误的初始化语句是: A: struct student s1={'Li',1,1,2000}; B: struct student s1={"Li",{1,1,2000}}; C: struct student s1={"Li",1,1,2000}; D: struct student s1={"Li",1,1};

    下面结构体的定义如下:struct student{ char name[32]; struct date{ int day; int month; int year; }birthday;};错误的初始化语句是: A: struct student s1={'Li',1,1,2000}; B: struct student s1={"Li",{1,1,2000}}; C: struct student s1={"Li",1,1,2000}; D: struct student s1={"Li",1,1};

  • 2022-05-26 问题

    ‌下面结构体的定义如下:‎‌struct student{‎‌ char name[32];‎‌ struct date{‎‌ int day;‎‌ int month;‎‌ int year;‎‌ }birthday;‎‌};‎‌错误的初始化语句是:‎ A: struct student s1={'Li',1,1,2000}; B: struct student s1={"Li",{1,1,2000}}; C: struct student s1={"Li",1,1,2000}; D: struct student s1={"Li",1,1};

    ‌下面结构体的定义如下:‎‌struct student{‎‌ char name[32];‎‌ struct date{‎‌ int day;‎‌ int month;‎‌ int year;‎‌ }birthday;‎‌};‎‌错误的初始化语句是:‎ A: struct student s1={'Li',1,1,2000}; B: struct student s1={"Li",{1,1,2000}}; C: struct student s1={"Li",1,1,2000}; D: struct student s1={"Li",1,1};

  • 2022-05-26 问题

    Christmas Day is ______. A: the birthday of Jesus Christ B: the only day for giving presents C: the only day for receiving presents

    Christmas Day is ______. A: the birthday of Jesus Christ B: the only day for giving presents C: the only day for receiving presents

  • 2022-05-26 问题

    下面结构体的定义如下:struct student{ char name[32]; struct date{ int day; int month; int year; }birthday;};错误的初始化语句是: A: struct student s1={"Li",{1,1,2000}}; B: struct student s1={'Li',1,1,2000}; C: struct student s1={"Li",1,1,2000}; D: struct student s1={"Li",1,1};

    下面结构体的定义如下:struct student{ char name[32]; struct date{ int day; int month; int year; }birthday;};错误的初始化语句是: A: struct student s1={"Li",{1,1,2000}}; B: struct student s1={'Li',1,1,2000}; C: struct student s1={"Li",1,1,2000}; D: struct student s1={"Li",1,1};

  • 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: 编译出错

  • 1 2 3 4 5 6 7 8 9 10