请在 下方输入 要搜索的题目:

编程题: 定义一个学生结构体student,包括学生的学号、姓名、性别和出生日期。出生日期要求包括年、月、日。编写程序输出一个学生的所有信息。

编程题: 定义一个学生结构体student,包括学生的学号、姓名、性别和出生日期。出生日期要求包括年、月、日。编写程序输出一个学生的所有信息。

发布时间:2025-03-28 16:55:33
推荐参考答案 ( 由 快搜搜题库 官方老师解答 )
联系客服
答案:#include using namespace std; struct student { int number; char *name; bool sex; struct date { int year; int month; int day; } birthday; }; int main() { student stu; stu.number = 10020; stu.name = "wangfang" ; stu.sex = 0; stu.birthday.year = 1998; stu.birthday.month = 11; stu.birthday.day = 26; cout
专业技术学习
相关试题
专业技术学习
搜搜题库系统