void inputstu(); void search(); void deletestu(); void insertstu(); void outputstud();
main()
{ int choice; while(1)
{ printf(\" ѧÉú¹ÜÀíϵͳ\\n\");
printf(\"-------------------------\\n\"); printf(\"1.ÐÂÉú×¢²á\\n\"); printf(\"2.²éÕÒѧÉú\\n\"); printf(\"3.ѧÉúÍËѧ\\n\"); printf(\"4.ÐÂÔöѧÉú\\n\"); printf(\"0.Í˳öϵͳ\\n\");
printf(\"ÇëÊäÈëÄãµÄ²Ù×÷0~4£º£º\");
scanf(\"%d\ switch(choice) {
/*ÊäÈë×¢²á*/
case 1: inputstu(); break; case 2: search(); break; case 3: deletestu();break; case 4: insertstu();break; default: exit(0); } } }
void inputstu() { int i;
printf(\"ÇëÊäÈëѧÉúÐÅÏ¢:\"); i=0;
scanf(\"%d\ while(s[i]>0) { SL++; i++;
scanf(\"%d\
}
outputstud(); }
void outputstud() {
int i; i=0;
while(s[i]!=0)
{ printf(\"%5d\ i++; }
printf(\"\\n\"); }
void search(){} void deletestu() { int no,i,k;
printf(\"ÊäÈëҪɾ³ýµÄѧÉúÐÅÏ¢£º\"); scanf(\"%d\ for(i=0;i outputstud(); }else { printf(\"ûÓÐÕÒµ½Ñ§Éú\\n\"); } } void insertstu() { int no,i,k; printf(\"ÊäÈëÐÂÔöѧÉúÐÅÏ¢£º\"); scanf(\"%d\ i=0; while(s[i]!=0 && s[i] s[k+1]=s[k]; s[i]=no; outputstud(); } 因篇幅问题不能全部显示,请点此查看更多更全内容