编写程序输入一个学生记录,记录包含、姓名、性别和成绩信息,从键盘输入这 些数据,并且显示出来。学生记录结构体定义如下: struct student{ int no; char name[20]; char sex[2]; float score; }stu1; 参考程序如下 : struct student{ int no; char name[20]; char sex[2]; float score; }stu1; main(){ printf("********* 请输入该学生的、姓名、性别和成绩 :\n"); scanf("%d %s %s %f",&stu1.no,&stu1.name,&stu1.sex,&stu1.score); printf(" :%d\n 姓名 :%s\n 性别 :%s\n 成绩 :%f\n",stu1.no,stu1.name,stu1.sex,stu1.score); }