(*p)(stu,num); }
else if(strcmp(ch,\ {
p=write;
(*p)(stu,num);
}
else if(strcmp(ch,\ {
p=read;
(*p)(stu,num); }
else if(strcmp(ch,\ {
p=del;
(*p)(stu,num); }
else if(strcmp(ch,\
{
exit(0); }
专业资料
// write(stu,num);
//read(stu,num); } }
//输入学生相关信息
return 0;
void insert(struct Student *stu,int num) {
int i=0; char ch;
system(\ do{
if(i { printf(\输入第%d个学生的宿舍号:\ scanf(\ printf(\姓名:\ scanf(\ printf(\学号:\ 专业资料 scanf(\ printf(\性别:\ scanf(\ printf(\系别:\ scanf(\ printf(\专业:\ scanf(\ printf(\ scanf(\ i++; } else { printf(\ \\n\\t 人数已满无法继续输入\ printf(\是退出该功能输入?(Y/N):\ ch=getchar(); ch=getchar(); } }while(ch!='y'&&ch!='Y'); write(stu,num); system(\ 专业资料