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.

63 lines
1.2 KiB

#include<sys.h>
int i, j, n, m;
student f;
student f2;
student in;
student dl;
int main()
{
studentinit(f);
studentinit(f2);
studentinit(in);
studentinit(dl);
LNode* head = (LNode*)malloc(sizeof(LNode));
head->next = NULL;
int choose;
while (1)
{
student_show_menu();
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
scanf_s("%d", &choose);
switch (choose)
{
case(1):
student_input(head);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
break;
case(2):
student_show(head); //<2F><>ʾ<EFBFBD><CABE>Ϣ
break;
case(3):
name_find(head, f); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
break;
case(4):
num_find(head, f2); //<2F><>ѧ<EFBFBD>Ų<EFBFBD><C5B2><EFBFBD>
break;
case(5):
num_seq(head); //<2F><>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
break;
case(6):
sum_seq(head); //<2F><><EFBFBD>ܳɼ<DCB3><C9BC><EFBFBD><EFBFBD><EFBFBD>
break;
case(7):
stu_insert(head, in); //<2F><><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>
break;
case(8):
stu_del(head, &dl); //ɾ<><C9BE>ѧ<EFBFBD><D1A7> (<28>Ա<EFBFBD>*<2A><>&) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD>*<2A><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD>&<26><>ȡĿ<C8A1><C4BF><EFBFBD><EFBF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