學生資訊管理系統(C語言版本)

2022-02-10 02:21:26 字數 1629 閱讀 9401

這是我個人寫的乙個學生管理系統,這是我僅僅用來練手的**,要知道鍊錶可是你在面試過程中最大機率會考到的,我是陸續從單向鍊錶入門,然後採用雙向鍊錶寫的**!如有bug,請指正,讓我們

共同進步!

1 #include2 #include3 #include

4struct

student5;

14 typedef struct

student link;

15 link *head;

16int

insert()

1734 printf("

請輸入學生的班級號碼:\n");

35 scanf("

%d",&newnode->class_num);

36 newnode->next =null;

37 newnode->pr =null;

38if(temp_head->next ==null)

3945

int flag = 0;46

while(temp_head->next !=null)47

57 temp_head = temp_head->next;58}

59if(flag == 0)60

65return0;

66}67int

input()

6875

else

if(strcmp(num,"

delete

") == 0)76

79else

if(strcmp(num,"

display

") == 0)80

83else

if(strcmp(num,"

exit

") == 0)84

87else

88 91}

92int display(int

id)93

101while(temp_head !=null)

102109 temp_head = temp_head->next;

110}

111if(flag == 0

)112

115return0;

116}

117int delete(int

id)118

126while(temp_head !=null)

127136

else

137

143}

144 temp_head = temp_head->next;

145146

}147

if(flag == 1

)148

151else

152155

return0;

156}

157int

main()

158197 printf("

請輸入命令!\n");

198 pid =input();

199}

200 printf("

該程式結束!\n");

201return0;

202 }

學生資訊管理系統(C語言)

include includetypedef struct s student student insert student last student head 不傳頭 student order student student head,int student list length 按學號小到大...

職工資訊管理系統 C語言版

話不多說,先上 ps 當時沒學資料結構,剛學完c語言。也沒有進行傳參,實在過於粗糙了些 第一次寫系統,有許多的不足。include include include struct bossa 1000 int n void menu void lr1 void look1 void chaxun1 v...

c語言學生資訊管理系統

超簡單的學生資訊管理系統 使用順序表實現 適合入門,新手學習使用 include include include include define n 20 int count 0 typedef struct student typedef struct sqlist void create sqli...