#include<string.h>
struct student
{int num;
char name[20];
float score[3];
}stu;
main()
{scanf("%d%s%f%f%f",&stu.num,&stu.name,&stu.score[0], /*要记得每个都要加取地址符*/
&stu.score[1],&stu.score[2]);
void print(struct student *);/*不能在此声明函数*/
print(&stu);
......................
阅读全部 | 2025年7月29日 18:28