You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
342 B

void delete_student()
{
long int xuehao;
int m;
printf("请输入学号:");
scanf("%ld",&xuehao);
if(i==1)
{
if(student[m].xuehao==xuehao)
printf("没有数据!");
}
else{
for(m=0;m<i;m++)
if(student[m].xuehao==xuehao)break;
for(;m<i;m++) student[m]=student[m+1];
}
save();
printf("\n");
system("pause");
system("cls");
}