uct dom),1,fp);Р i++;}Р fclose(fp);Р return(i);}Рoutput_message()/*输出模块*/Р { int i=0;Рprintf("\n\n --学生信息表-- \n\n");РPRINT2;РPRINT1;Рfor(i=0;i<sum;i++)Рif(s[i].st.num!=0)Р{printf("%2d%10s%8d%8d%8d\n\n",s[i].st.num,s[i].st.name,Р s[i].shu_num,s[i].ying_num,s[i].c_num);Р printf("\n");}}Р insert_message()/*添加学生信息*/Р {int i=sum,flag=0;Р char choice;Р printf("\n\n 添加一个新同学\n");Р printf(" ---------------\n");doР {printf("\n 新学号: ");Р scanf("%d",&s[i].st.num);Р printf("\n 学生姓名: ");Р scanf("%s",s[i].st.name);Р printf("\n 数学成绩");Р scanf("%d",&s[i].shu_num);Р printf("\n 英语成绩");Р scanf("%d",&s[i].ying_num);Р printf("\n C语言成绩");Р scanf("%d",&s[i].c_num);Р sum++;Р printf("\n 要继续吗?(Y/N)");Р getchar();Р scanf("%c",&choice);Р if(choice=='y' || choice=='Y')Р {flag=1; i++;Р printf("\n 继续!\n");}Р else flag=0;