diff --git a/zengjia.c b/zengjia.c index 26d5f49..32b0c3f 100644 --- a/zengjia.c +++ b/zengjia.c @@ -35,7 +35,7 @@ stu[j].age=s; } } } -void add() /*插入函数*/ +void add() /*插入函数,增加学生*/ { int i=n,j,flag; printf("请输入待增加的学生数:\n"); diff --git a/鍒犻櫎鍑芥暟鍜屼繚瀛樺嚱鏁.c b/鍒犻櫎鍑芥暟鍜屼繚瀛樺嚱鏁.c new file mode 100644 index 0000000..b1065e8 --- /dev/null +++ b/鍒犻櫎鍑芥暟鍜屼繚瀛樺嚱鏁.c @@ -0,0 +1,35 @@ +#include"显示.cpp" + void dele() /* 删除信息 */ +{ +int i,j,flag=0; +char s1[LEN+1]; +printf("请输入要删除学生的学号:\n"); +scanf("%s",s1); +for(i=0;i