- 注册时间
- 2004-10-13
- 最后登录
- 2019-5-15
⑧专业
*永恒国度*
- 积分
- 14145

|
- struct date
- {
- int month;
- int day;
- int year;
- }
- struct stud_type
- {
- char name[20];
- int age;
- char sex;
- struct date birthday;
- long num;
- float score;
- };
- main()
- {
- struct stud_type student1={"wang li",18,'m',12,15,1974,89101,89.5};
- struct stud_type student2;
- student2=student1;
- printf("student2:%s,%d,%c,%d/%d/%d,%ld,% 5.2f\n",student2.name,student2.age
- ,student2.sex,student2.birthday.month,student2.birthday.day,
- student2.birthday.year,student2.num,student2.score);
- }
复制代码
为什么这程序运行不了呢? [s:6] [s:6] |
|