master
2414352760@qq.com 6 years ago
parent 0ae91201d2
commit 89082ae613

21
z1.c

@ -0,0 +1,21 @@
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");
}
Loading…
Cancel
Save