C語言不用鏈表完成學(xué)生管理系統(tǒng)(完整代碼)
1.課程設(shè)計(jì)目的
1.更好的理解c語言的相關(guān)實(shí)現(xiàn)內(nèi)容,對(duì)于c語言的理解得到更好的幫助。
2.實(shí)現(xiàn)更方便快捷的應(yīng)用。
2.基本要求
(1)、1.每組完成1個(gè)題目的設(shè)計(jì);每人獨(dú)立完成該題目的一個(gè)功能模塊的實(shí)現(xiàn),并將課程設(shè)計(jì)報(bào)告打印、裝訂提交。
(2).使用標(biāo)準(zhǔn)C語言編制程序,源代碼必須采用鋸齒型書寫格式,必須上機(jī)調(diào)試通過。運(yùn)行界面友好,易于操作。(3).輸出要求:
1)
應(yīng)用程序正常運(yùn)行后,要在屏幕上顯示一個(gè)文字菜單;2)
要求用戶輸入數(shù)據(jù)時(shí),要給出清晰、明確的提示信息,包括輸入的數(shù)據(jù)內(nèi)容、格式等;3)為各項(xiàng)操作功能設(shè)計(jì)一個(gè)菜單,應(yīng)用程序運(yùn)行后,先顯示這個(gè)菜單,然后用戶通過菜單項(xiàng)選擇希望進(jìn)行的操作項(xiàng)目。
(4).必須實(shí)現(xiàn)所要求的全部功能。(5).課程設(shè)計(jì)要求獨(dú)立完成,不得抄襲。若發(fā)現(xiàn)抄襲行為,則成績(jī)一律記零分。
3.任務(wù)完成情況
1.可以通過程序?qū)崿F(xiàn)學(xué)生信息的增加刪除顯示查找以及修改功能。
2.通過非鏈表的方式運(yùn)用結(jié)構(gòu)體的方法編寫程序。
4.設(shè)計(jì)報(bào)告
4.1需求分析
4.1.1用戶需求分析
(1)、可以快速度的找出輸入的學(xué)生的所有信息。 (2)、可以精確的找出某個(gè)學(xué)生的所有信息。 (3)、需要準(zhǔn)確的修改某個(gè)學(xué)生的成績(jī)。
4.2概要設(shè)計(jì)
1.增加信息。
2.顯示信息。
3.查找信息。
4.刪除信息。
5.修改信息。
4.3詳細(xì)設(shè)計(jì)
4.3.1程序流程圖
4.4詳細(xì)代碼
4.4.1結(jié)構(gòu)體定義
typedef struct//定義了一個(gè)結(jié)構(gòu)體變量 { char stu_name[10]; //表示姓名 int
stu_id; //表示學(xué)號(hào) double stu_math; //高數(shù)成績(jī) double
stu_english; //大學(xué)英語成績(jī) } student;
4.4.2主函數(shù)
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h>
4.4.3初始化函數(shù)
student all_stu[10]; int stu_number=0;//定義了學(xué)生的人數(shù) int main()
4.4.4顯示菜單函數(shù)
void first();//一號(hào)條件 void secend();//二號(hào)條件 void third();//三號(hào)條件 void fourth();//四號(hào)條件 void fifth(); int q; do printf("\n\n\n\n printf("\t\t=學(xué)生成績(jī)管理系統(tǒng)\n"); printf("\t\t* \n"); printf("\t\t 1. 輸入學(xué)生成績(jī) \n"); printf("\t\t 2. 查找學(xué)生成績(jī) \n"); printf("\t\t 3. 顯示所有成績(jī) \n"); printf("\t\t 4. 刪除學(xué)生成績(jī) \n"); printf("\t\t 5. 修改學(xué)生成績(jī) \n"); printf("\t\t 0. 退出管理系統(tǒng) \n"); printf("\t\t printf("\t\t=========================================\n); printf("\t\t輸入你的選項(xiàng):"); scanf("%d",&q); switch(q) { case 1: first(); printf(“按任意鍵回菜單”); getchar(); system(“cls”);//表示轉(zhuǎn)移號(hào) break; case 2: secend(); getchar(); printf(“按任意鍵回菜單”); getchar(); system(“cls”); break; case 3: third(); getchar(); printf("\n請(qǐng)按任意鍵返回主菜單\n"); getchar(); system(“cls”); break; case 4: fourth(); getchar(); printf("\n按任意鍵返回主菜單\n"); getchar(); system(“cls”); break; case 5: fifth(); getchar(); printf("\n按任意鍵回主菜單\n"); getchar(); system(“cls”); break; } }while(q); return 0;
4.4.5顯示各個(gè)功能函數(shù)
4.4.5.1增加信息
void first() { thefirst: system("cls"); printf("************輸入學(xué)生信息**********); printf("\n\n"); int cw,temp,hh; char op; stu_number++; printf("\n>>>>>>>>請(qǐng)輸入姓名: "); scanf("%s",all_stu[stu_number].stu_name); printf("\n>>>>>>>>請(qǐng)輸入學(xué)號(hào): "); scanf("%d",&temp); all_stu[stu_number].stu_id=temp; getchar();//接收一個(gè)空格 printf("\n>>>>>>請(qǐng)輸入高等數(shù)學(xué)成績(jī)(小于等于100):"); scanf("%lf",&all_stu[stu_number].stu_math); if (all_stu[stu_number].stu_math> 100) { printf("輸入有誤,請(qǐng)輸入正確的成績(jī)信息,請(qǐng)按(Y)重新輸入: "); getchar(); cw = getchar(); if (cw =='y'|| cw =='Y') goto thefirst; } printf("\n>>>>>>>>請(qǐng)輸入大學(xué)英語成績(jī)(小于等于100):"); scanf("%lf", &all_stu[stu_number].stu_english); if (all_stu[stu_number].stu_english> 100) { printf("輸入有誤,請(qǐng)輸入正確的成績(jī)信息,請(qǐng)按(Y)重新輸入: "); getchar();//接收Y cw = getchar(); if (cw == 'y' || cw == 'Y') goto thefirst; } thefirstone: printf("\n是否繼續(xù)輸入,如是請(qǐng)按(Y),否請(qǐng)按(N): "); getchar(); scanf("%c", &op); if (op == 'y' || op == 'Y') goto thefirst; if (op == 'n' || op == 'N') goto thefirstend; else goto thefirstone; getchar(); thefirstend:; getchar();//輸入任意數(shù)結(jié)束 }
4.4.5.2查找信息
void fourth() { thefourth: system("cls"); printf("\n\n\n\n********************刪除學(xué)生成績(jī)**********************"); int num,cw,cx,ai,i=0; char op; printf("\n>>>>>>>>請(qǐng)輸入要查找學(xué)生的學(xué)號(hào): "); scanf("%d",&num); for (ai=1;ai<=stu_number;ai++) { if (num==all_stu[ai].stu_id) { i=1; break; } } if (i==0) { printf("未查找到要?jiǎng)h除的學(xué)生信息,是否要重新輸入,如需要重新輸入請(qǐng)按(Y),如不需要請(qǐng)按(N)將返回主菜單: "); getchar(); cw = getchar(); if (cw == 'y' || cw == 'Y') goto thefourth;//回到開始 if (cw == 'n' || cw == 'N') goto thefourthend;//回到結(jié)尾 } else { stu_number--;//人數(shù)減一 for (;ai<stu_number;ai--) { all_stu[ai] = all_stu[ai+1];//后面的數(shù)據(jù)往前推 } } printf("\n\n此學(xué)號(hào)的學(xué)生成績(jī)信息已刪除"); getchar(); thefourthone: getchar(); printf("\n刪除的成績(jī)信息以刪除,是否繼續(xù)?\n需要請(qǐng)(Y),如不需要請(qǐng)(N),將返回主界面: "); scanf("%c", &op); if (op == 'y' || op == 'Y') goto thefourth; if (op == 'n' || op == 'N') goto thefourthend; else goto thefourthone; thefourthend:; }
4.4.5.3顯示信息
> void third() { thethird: system("cls"); > printf("\n\n**************************顯示學(xué)生信息***********************"); > int n=1; printf("\n\n>>>姓名"); printf("\t學(xué)號(hào)"); printf("\t高等數(shù)學(xué)"); > printf("\t大學(xué)英語"); //for (n=0;n<stu_number;n++); do { > printf("\n>>%s", all_stu[n].stu_name); printf("\t%d", > all_stu[n].stu_id); printf("\t%.2lf", all_stu[n].stu_math); > printf("\t%.2lf", all_stu[n].stu_english); n++; } while > (n<=stu_number); }
4.4.5.4刪除信息
void fourth() { thefourth: system("cls"); printf("\n\n\n\n********************刪除學(xué)生成績(jī)**********************"); int num,cw,cx,ai,i=0; char op; printf("\n>>>>>>>>請(qǐng)輸入要查找學(xué)生的學(xué)號(hào): "); scanf("%d",&num); for (ai=1;ai<=stu_number;ai++) { if (num==all_stu[ai].stu_id) { i=1; break; } } if (i==0) { printf("未查找到要?jiǎng)h除的學(xué)生信息,是否要重新輸入,如需要重新輸入請(qǐng)按(Y),如不需要請(qǐng)按(N)將返回主菜單: "); getchar(); cw = getchar(); if (cw == 'y' || cw == 'Y') goto thefourth;//回到開始 if (cw == 'n' || cw == 'N') goto thefourthend;//回到結(jié)尾 } else { stu_number--;//人數(shù)減一 for (;ai<stu_number;ai--) { all_stu[ai] = all_stu[ai+1];//后面的數(shù)據(jù)往前推 } } printf("\n\n此學(xué)號(hào)的學(xué)生成績(jī)信息已刪除"); getchar(); thefourthone: getchar(); printf("\n刪除的成績(jī)信息以刪除,是否繼續(xù)?\n需要請(qǐng)(Y),如不需要請(qǐng)(N),將返回主界面: "); scanf("%c", &op); if (op == 'y' || op == 'Y') goto thefourth; if (op == 'n' || op == 'N') goto thefourthend; else goto thefourthone; thefourthend:; }
4.4.5.5修改信息
void fifth()//修改成績(jī) { thefifth: system("cls"); printf("**************************修改學(xué)生成績(jī)*************************"); printf("\n\n"); int num,cw,cx,ai,i = 0, cy, temp; char op; printf("\n>>>>>>>>請(qǐng)輸入要查找學(xué)生的學(xué)號(hào): "); scanf("%d", &num); for (ai=1; ai<=stu_number; ai++) { if (num ==all_stu[ai].stu_id) { i = 1; break; } } if (i == 0) { printf("未查找到要修改的學(xué)生信息,重新輸入按Y,返回主菜單按N "); getchar(); cw = getchar(); if (cw == 'y' || cw == 'Y') goto thefifth; if (cw == 'n' || cw == 'N') goto thefifthend; } else { printf("***********************************************************************"); printf("\n*姓名___: "); printf("%s", all_stu[ai].stu_name); printf("\n*學(xué)號(hào)___: "); printf("%d", all_stu[ai].stu_id); printf("\n*高數(shù)成績(jī): "); printf("%.2lf", all_stu[ai].stu_math); printf("\n*大學(xué)英語成績(jī): "); printf("%.2lf",all_stu[ai].stu_english); printf("\n*********************************************************************"); } getchar(); printf("\n\n是否確認(rèn)修改此學(xué)生成績(jī)信息?(注:修改后將不可還原)如需修改請(qǐng)按Y,如不需修改學(xué)生信息請(qǐng)安N返回主菜單: "); thefifthone: cw = getchar(); if (cw == 'y' || cw == 'Y') goto thefifthtwo; if (cw == 'n' || cw == 'N') goto thefifthend; else goto thefifthone; thefifthtwo: system("cls"); printf("\n>>>>>>>>請(qǐng)輸入姓名: "); scanf("%s", all_stu[ai].stu_name); printf("\n>>>>>>>>請(qǐng)輸入學(xué)號(hào): "); scanf("%d",&temp); all_stu[ai].stu_id = temp; getchar(); for (cy = 0; cy < ai; cy++) { if (all_stu[ai].stu_id == all_stu[cy].stu_id) { printf("學(xué)號(hào)輸入錯(cuò)誤,如需重新輸入請(qǐng)按(Y)退出請(qǐng)按(N)"); cw = getchar(); if (cw == 'y' || cw == 'Y') goto thefifthtwo; else goto thefifthend; } } printf("\n>>>>>>>>請(qǐng)輸入第一門成績(jī)(小于100): "); scanf("%lf", &all_stu[ai].stu_math); if (all_stu[ai].stu_math > 100) { printf("輸入有誤,請(qǐng)按(Y)重新輸入: "); getchar(); cw = getchar(); if (cw == 'y' || cw == 'Y') goto thefifthtwo; } printf("\n>>>>>>>>請(qǐng)輸入第二門成績(jī)(小于100): "); scanf("%lf", &all_stu[ai].stu_english); if (all_stu[ai].stu_english > 100) { printf("輸入有誤,請(qǐng)按(Y)重新輸入: "); getchar(); cw = getchar(); if (cw == 'y' || cw == 'Y') goto thefifthtwo; } printf("\n\n"); printf("\n OK 此學(xué)生成績(jī)信息已修改完成,感謝您的使用。"); thefifthfanhui: getchar(); printf("\n成績(jī)信息已修改,是否繼續(xù)?\n需要請(qǐng)按Y,如不需要請(qǐng)按Y,將返回主菜單: "); scanf("%c", &op); if (op == 'y' || op == 'Y') goto thefifth; if (op == 'n' || op == 'N') goto thefifthend; else goto thefifthfanhui; thefifthend:; }
4.5使用說明
本代碼比較簡(jiǎn)單易懂,蒟蒻也能看懂。
4.6測(cè)試結(jié)果與分析
主界面如圖:
輸入信息圖示:
查找信息如圖:
顯示所有信息如圖:
刪除學(xué)生信息:
修改學(xué)生信息如圖:
4.7參考文獻(xiàn)
【1】c語言從入門到精通2020版。
5體會(huì)與感想
學(xué)習(xí)的過程很漫長(zhǎng),只有依靠自己的慢慢摸索,在過程中總結(jié)出經(jīng)驗(yàn)才是學(xué)習(xí)中最重要的事情。
6附錄
附錄 #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int sum; typedef struct//定義了一個(gè)結(jié)構(gòu)體變量 { char stu_name[10]; //表示姓名 int stu_id; //表示學(xué)號(hào) double stu_math; //高數(shù)成績(jī) double stu_english; //大學(xué)英語成績(jī) } student; student all_stu[10]; int stu_number=0;//定義了學(xué)生的人數(shù) int main() { void first();//一號(hào)條件 void secend();//二號(hào)條件 void third();//三號(hào)條件 void fourth();//四號(hào)條件 void fifth(); int q; do { printf("\n\n\n\n"); printf("\t\t=====================學(xué)生成績(jī)管理系統(tǒng)=================\n"); printf("\t\t* *\n"); printf("\t\t* 1. 輸入學(xué)生成績(jī) *\n"); printf("\t\t* 2. 查找學(xué)生成績(jī) *\n"); printf("\t\t* 3. 顯示所有成績(jī) *\n"); printf("\t\t* 4. 刪除學(xué)生成績(jī) *\n"); printf("\t\t* 5. 修改學(xué)生成績(jī) *\n"); printf("\t\t* 0. 退出管理系統(tǒng) *\n"); printf("\t\t* 歡迎使用! *\n"); printf("\t\t=======================================================\n"); printf("\t\t輸入你的選項(xiàng):"); scanf("%d",&q); switch(q) { case 1: first(); printf("按任意鍵回菜單"); getchar(); system("cls");//表示轉(zhuǎn)移號(hào) break; case 2: secend(); getchar(); printf("按任意鍵回菜單"); getchar(); system("cls"); break; case 3: third(); getchar(); printf("\n請(qǐng)按任意鍵返回主菜單\n"); getchar(); system("cls"); break; case 4: fourth(); getchar(); printf("\n按任意鍵返回主菜單\n"); getchar(); system("cls"); break; case 5: fifth(); getchar(); printf("\n按任意鍵回主菜單\n"); getchar(); system("cls"); break; } }while(q); return 0; } void first() { thefirst: system("cls"); printf("********************************輸入學(xué)生信息*********************************"); printf("\n\n"); int cw,temp,hh; char op; stu_number++; printf("\n>>>>>>>>請(qǐng)輸入姓名: "); scanf("%s",all_stu[stu_number].stu_name); printf("\n>>>>>>>>請(qǐng)輸入學(xué)號(hào): "); scanf("%d",&temp); all_stu[stu_number].stu_id=temp; getchar();//接收一個(gè)空格 printf("\n>>>>>>>>請(qǐng)輸入高等數(shù)學(xué)成績(jī)(小于等于100):"); scanf("%lf",&all_stu[stu_number].stu_math); if (all_stu[stu_number].stu_math> 100) { printf("輸入有誤,請(qǐng)輸入正確的成績(jī)信息,請(qǐng)按(Y)重新輸入: "); getchar(); cw = getchar(); if (cw =='y'|| cw =='Y') goto thefirst; } printf("\n>>>>>>>>請(qǐng)輸入大學(xué)英語成績(jī)(小于等于100):"); scanf("%lf", &all_stu[stu_number].stu_english); if (all_stu[stu_number].stu_english> 100) { printf("輸入有誤,請(qǐng)輸入正確的成績(jī)信息,請(qǐng)按(Y)重新輸入: "); getchar();//接收Y cw = getchar(); if (cw == 'y' || cw == 'Y') goto thefirst; } thefirstone: printf("\n是否繼續(xù)輸入,如是請(qǐng)按(Y),否請(qǐng)按(N): "); getchar(); scanf("%c", &op); if (op == 'y' || op == 'Y') goto thefirst; if (op == 'n' || op == 'N') goto thefirstend; else goto thefirstone; getchar(); thefirstend:; getchar();//輸入任意數(shù)結(jié)束 } void secend() { thesecend: system("cls"); printf("\n\n**************************查找學(xué)生成績(jī)*************************"); int data,cw,j,flag=0; char op; printf("\n>>>>>>>>請(qǐng)輸入要查找學(xué)生的學(xué)號(hào):"); scanf("%d",&data); for (j=1;j<=stu_number;j++) { if(data==all_stu[j].stu_id) { flag=1; break; } } if (flag==0) { printf("未查找到此學(xué)號(hào),重新輸入請(qǐng)按(Y),如不需要請(qǐng)按(N)將返回主菜單: "); getchar(); cw=getchar(); if (cw=='y'||cw=='Y') goto thesecend; if (cw == 'n' || cw == 'N') goto thesecendend; } else { for(j=1;j<=stu_number;j++){ printf("\n***********************************************"); printf("\n*姓名___: "); printf("%s",all_stu[j].stu_name); printf("\n*學(xué)號(hào)___: "); printf("%d",all_stu[j].stu_id); printf("\n*高數(shù)_: "); printf("%.2lf", all_stu[j].stu_math); printf("\n*大學(xué)英語_: "); printf("%.2lf", all_stu[j].stu_english); printf("\n************************************************"); } } thesecendone: getchar(); printf("\n輸入錯(cuò)誤,是否繼續(xù)查閱?\n需要按(Y),如不需要按(N),將返回主界面:"); scanf("%c",&op); if (op =='y' || op =='Y') goto thesecend; if (op =='n' || op =='N') goto thesecendend; else goto thesecendone; thesecendend:; } void third() { thethird: system("cls"); printf("\n\n*********************顯示學(xué)生信息******************************"); int n=1; printf("\n\n>>>姓名"); printf("\t學(xué)號(hào)"); printf("\t高等數(shù)學(xué)"); printf("\t大學(xué)英語"); //for (n=0;n<stu_number;n++); do { printf("\n>>%s", all_stu[n].stu_name); printf("\t%d", all_stu[n].stu_id); printf("\t%.2lf", all_stu[n].stu_math); printf("\t%.2lf", all_stu[n].stu_english); n++; } while (n<=stu_number); } void fourth() { thefourth: system("cls"); printf("\n\n\n\n********************刪除學(xué)生成績(jī)**********************"); int num,cw,cx,ai,i=0; char op; printf("\n>>>>>>>>請(qǐng)輸入要查找學(xué)生的學(xué)號(hào): "); scanf("%d",&num); for (ai=1;ai<=stu_number;ai++) { if (num==all_stu[ai].stu_id) { i=1; break; } } if (i==0) { printf("未查找到要?jiǎng)h除的學(xué)生信息,是否要重新輸入,如需要重新輸入請(qǐng)按(Y),如不需要請(qǐng)按(N)將返回主菜單: "); getchar(); cw = getchar(); if (cw == 'y' || cw == 'Y') goto thefourth;//回到開始 if (cw == 'n' || cw == 'N') goto thefourthend;//回到結(jié)尾 } else { stu_number--;//人數(shù)減一 for (;ai<stu_number;ai--) { all_stu[ai] = all_stu[ai+1];//后面的數(shù)據(jù)往前推 } } printf("\n\n此學(xué)號(hào)的學(xué)生成績(jī)信息已刪除"); getchar(); thefourthone: getchar(); printf("\n刪除的成績(jī)信息以刪除,是否繼續(xù)?\n需要請(qǐng)(Y),如不需要請(qǐng)(N),將返回主界面: "); scanf("%c", &op); if (op == 'y' || op == 'Y') goto thefourth; if (op == 'n' || op == 'N') goto thefourthend; else goto thefourthone; thefourthend:; } void fifth()//修改成績(jī) { thefifth: system("cls"); printf("**************************修改學(xué)生成績(jī)*************************"); printf("\n\n"); int num,cw,cx,ai,i = 0, cy, temp; char op; printf("\n>>>>>>>>請(qǐng)輸入要查找學(xué)生的學(xué)號(hào): "); scanf("%d", &num); for (ai=1; ai<=stu_number; ai++) { if (num ==all_stu[ai].stu_id) { i = 1; break; } } if (i == 0) { printf("未查找到要修改的學(xué)生信息,重新輸入按Y,返回主菜單按N "); getchar(); cw = getchar(); if (cw == 'y' || cw == 'Y') goto thefifth; if (cw == 'n' || cw == 'N') goto thefifthend; } else { printf("***************************************************************************"); printf("\n*姓名___: "); printf("%s", all_stu[ai].stu_name); printf("\n*學(xué)號(hào)___: "); printf("%d", all_stu[ai].stu_id); printf("\n*高數(shù)成績(jī): "); printf("%.2lf", all_stu[ai].stu_math); printf("\n*大學(xué)英語成績(jī): "); printf("%.2lf",all_stu[ai].stu_english); printf("\n***************************************************************************"); } getchar(); printf("\n\n是否確認(rèn)修改此學(xué)生成績(jī)信息?(注:修改后將不可還原)如需修改請(qǐng)按Y,如不需修改學(xué)生信息請(qǐng)安N返回主菜單: "); thefifthone: cw = getchar(); if (cw == 'y' || cw == 'Y') goto thefifthtwo; if (cw == 'n' || cw == 'N') goto thefifthend; else goto thefifthone; thefifthtwo: system("cls"); printf("\n>>>>>>>>請(qǐng)輸入姓名: "); scanf("%s", all_stu[ai].stu_name); printf("\n>>>>>>>>請(qǐng)輸入學(xué)號(hào): "); scanf("%d",&temp); all_stu[ai].stu_id = temp; getchar(); for (cy = 0; cy < ai; cy++) { if (all_stu[ai].stu_id == all_stu[cy].stu_id) { printf("學(xué)號(hào)輸入錯(cuò)誤,如需重新輸入請(qǐng)按(Y)退出請(qǐng)按(N)"); cw = getchar(); if (cw == 'y' || cw == 'Y') goto thefifthtwo; else goto thefifthend; } } printf("\n>>>>>>>>請(qǐng)輸入第一門成績(jī)(小于100): "); scanf("%lf", &all_stu[ai].stu_math); if (all_stu[ai].stu_math > 100) { printf("輸入有誤,請(qǐng)按(Y)重新輸入: "); getchar(); cw = getchar(); if (cw == 'y' || cw == 'Y') goto thefifthtwo; } printf("\n>>>>>>>>請(qǐng)輸入第二門成績(jī)(小于100): "); scanf("%lf", &all_stu[ai].stu_english); if (all_stu[ai].stu_english > 100) { printf("輸入有誤,請(qǐng)按(Y)重新輸入: "); getchar(); cw = getchar(); if (cw == 'y' || cw == 'Y') goto thefifthtwo; } printf("\n\n"); printf("\n OK 此學(xué)生成績(jī)信息已修改完成,感謝您的使用。"); thefifthfanhui: getchar(); printf("\n成績(jī)信息已修改,是否繼續(xù)?\n需要請(qǐng)按Y,如不需要請(qǐng)按Y,將返回主菜單: "); scanf("%c", &op); if (op == 'y' || op == 'Y') goto thefifth; if (op == 'n' || op == 'N') goto thefifthend; else goto thefifthfanhui; thefifthend:; }
by:一個(gè)剛剛學(xué)習(xí)c語言的大學(xué)生~~
到此這篇關(guān)于C語言不用鏈表完成學(xué)生管理系統(tǒng)(完整代碼)的文章就介紹到這了,更多相關(guān)c語言學(xué)生管理系統(tǒng)內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
- C語言結(jié)構(gòu)體鏈表和指針實(shí)現(xiàn)學(xué)生管理系統(tǒng)
- 基于C語言實(shí)現(xiàn)學(xué)生管理系統(tǒng)
- c語言實(shí)現(xiàn)學(xué)生管理系統(tǒng)詳解
- C語言實(shí)現(xiàn)班級(jí)學(xué)生管理系統(tǒng)
- C語言單鏈表實(shí)現(xiàn)學(xué)生管理系統(tǒng)
- C語言實(shí)現(xiàn)學(xué)生管理系統(tǒng)
- C語言鏈表實(shí)現(xiàn)學(xué)生管理系統(tǒng)
- C語言實(shí)現(xiàn)簡(jiǎn)單學(xué)生管理系統(tǒng)
- C語言學(xué)生管理系統(tǒng)源碼分享
- C語言實(shí)現(xiàn)簡(jiǎn)易學(xué)生管理系統(tǒng)
相關(guān)文章
詳解C語言中的符號(hào)常量、變量與算術(shù)表達(dá)式
這篇文章主要介紹了C語言中的符號(hào)常量、變量與算術(shù)表達(dá)式,是C語言入門學(xué)習(xí)中的基礎(chǔ)知識(shí),需要的朋友可以參考下2015-11-11C語言實(shí)現(xiàn)小型工資管理系統(tǒng)
這篇文章主要為大家詳細(xì)介紹了C語言實(shí)現(xiàn)小型工資管理系統(tǒng),文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2022-02-02C語言實(shí)現(xiàn)可保存的動(dòng)態(tài)通訊錄的示例代碼
這篇文章主要為大家詳細(xì)介紹了如何利用C語言實(shí)現(xiàn)一個(gè)簡(jiǎn)單的可保存的動(dòng)態(tài)通訊錄,文中的示例代碼講解詳細(xì),對(duì)我們學(xué)習(xí)C語言有一定幫助,需要的可以參考一下2022-07-07深入探討Linux靜態(tài)庫與動(dòng)態(tài)庫的詳解(一看就懂)
本篇文章是對(duì)Linux靜態(tài)庫與動(dòng)態(tài)庫進(jìn)行了詳細(xì)的分析介紹,需要的朋友參考下2013-05-05