運(yùn)動(dòng)會(huì)積分系統(tǒng)_第1頁(yè)
運(yùn)動(dòng)會(huì)積分系統(tǒng)_第2頁(yè)
運(yùn)動(dòng)會(huì)積分系統(tǒng)_第3頁(yè)
已閱讀5頁(yè),還剩36頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、程序設(shè)計(jì)報(bào)告(2014 / 2015 學(xué)年 第 2學(xué)期)題 目:運(yùn)動(dòng)會(huì)積分系統(tǒng)專(zhuān)業(yè)組長(zhǎng)學(xué)號(hào)姓名 組員學(xué)號(hào)姓名 指導(dǎo)教師指導(dǎo)單位日期成員分工- 長(zhǎng) 組- 員 組員 組評(píng)分細(xì)則項(xiàng) 分 評(píng)秀等 中差守M度 態(tài) 習(xí) 學(xué)課題功能實(shí)現(xiàn)情況算法設(shè)計(jì)合理性用戶(hù)界面設(shè)計(jì)報(bào)告書(shū)寫(xiě)認(rèn)真程度內(nèi)容詳實(shí)程度文字表達(dá)熟練程度回答問(wèn)題準(zhǔn)確度簡(jiǎn) 短 評(píng) 語(yǔ)教師簽名:年月日評(píng)分等級(jí)查柯丞賈世恩備 注評(píng)分等級(jí)共五種:優(yōu)秀、良好、中等、及格、不及格運(yùn)動(dòng)會(huì)積分系統(tǒng)一、課題內(nèi)容和要求學(xué)生運(yùn)動(dòng)會(huì)成績(jī)數(shù)據(jù)庫(kù)系統(tǒng)記錄某校運(yùn)動(dòng)會(huì)上全部運(yùn)動(dòng)項(xiàng)目,各系獲得的分?jǐn)?shù)及排名的情況,包括50、100、200,400, 1500米,跳高,跳遠(yuǎn),標(biāo)槍?zhuān)U球鐵餅

2、等。請(qǐng)?jiān)O(shè)計(jì) 一個(gè)積分系統(tǒng),方便學(xué)校對(duì)比賽成績(jī)進(jìn)行統(tǒng)計(jì)管理。二、需求分析運(yùn)動(dòng)會(huì)積分系統(tǒng)的功能框架圖如圖1所示。錄入模塊統(tǒng)計(jì)總分按項(xiàng)目編號(hào)查詢(xún)運(yùn)動(dòng)會(huì)積分系統(tǒng)按院系編號(hào)排序按男團(tuán)體總分排序圖1功能框架圖按女團(tuán)體總分排序按院系總分按院系編號(hào)查詢(xún)?cè)合的硞€(gè)項(xiàng)目情況管理員:1)以管理員身份登錄,預(yù)先設(shè)定參加運(yùn)動(dòng)會(huì)的系院數(shù)目,男子項(xiàng)目數(shù)女子項(xiàng)目數(shù),(每 項(xiàng)目取前三名,分別為10,5,2分)2)管理員憑密碼進(jìn)入錄入成績(jī)狀態(tài),填寫(xiě)比賽結(jié)果,輸入各項(xiàng)目獲獎(jiǎng)運(yùn)動(dòng)員的信息, 但錄入完成后不得修改成績(jī)??梢园锤飨翟壕幪?hào)輸出總分;按總分排序;按男團(tuán)體總分排 序;按系院編號(hào)查詢(xún);按項(xiàng)目編號(hào)查詢(xún);按女團(tuán)體總分排序。3)審核各院

3、系提交的復(fù)核申請(qǐng),予以批準(zhǔn)后修改成績(jī)。普通用戶(hù):1)普通用戶(hù)可以查詢(xún)各個(gè)比賽成績(jī),生成團(tuán)體總分報(bào)表,查看參賽院系的成績(jī)和各比 賽項(xiàng)目最終名次等。2)允許提交復(fù)核申請(qǐng),提請(qǐng)管理員修改成績(jī)。三、概要設(shè)計(jì)1主要結(jié)構(gòu)體typedef struct no de1int school; /* 院系編號(hào) */int record; /* 項(xiàng)目成績(jī) */struct n odel *n ext;/* 鏈域 */Schools;typedef struct int item; /*項(xiàng)目編號(hào)*/Schools *firstschool; /*鏈域指向鏈表中第一個(gè)結(jié)點(diǎn)*/ITEM;typedef struct in

4、t乙/* 項(xiàng)目總數(shù)*/ITEM aMAX;ALLitems;typedef struct no de2 int item;/*該院系獲獎(jiǎng)的項(xiàng)目*/int record; /* 項(xiàng)目成績(jī) */struct node2 *n ext;/* 鏈域 */Items;typedef struct int school;/* 院系編號(hào) */int score; /* 院系總分 */int boys;/*男團(tuán)體總分*/int girls;/*女團(tuán)體總分*/Items *firstitem; /*鏈域指向鏈表中第一個(gè)獲獎(jiǎng)項(xiàng)目的結(jié)點(diǎn) */SCHNode;typedef struct int n; /* 院系總數(shù)

5、*/SCHNode bMAX;ALLNode;ALLitems *g1;ALLNode *g2;2主要函數(shù)流程圖;:開(kāi)始輸入密碼登錄進(jìn)入菜單管 理 員 界 面普通用戶(hù)界面操作圖2登錄函數(shù)選擇功能返回菜單N:結(jié)束圖3主函數(shù)流程四、源程序代碼#i nclude #i nclude #in elude #i nclude #include /*屏幕操作函數(shù) */#define MAX 50/#defi ne NULL 0struct userchar user_Name6;char user_Pass6;stu1 = admin , admin ;/初始化用戶(hù)名和對(duì)應(yīng)密碼 void print_Pa

6、sswd( void )int i = 0; /當(dāng)前賬號(hào)標(biāo)記int flagl = 0;/登錄成功標(biāo)記int flag = 0; /密碼正確標(biāo)記char p6; 臨時(shí)用戶(hù)名char s6; 臨時(shí)密碼char num = 0; /密碼次數(shù)char temp; /登錄后改密碼printf(請(qǐng)輸入登錄名:n);scanf( %s , p);if (strcmp(stui.user_Name, p) = 0) flag = 1;if (1 = flag)printf(請(qǐng)輸入密碼:n); scanf( %s , s);elseprintf(沒(méi)有此用戶(hù):n);exit(O);while (strcmp(s

7、tui.user_Pass, s) != 0)printf(密碼錯(cuò)誤!n”);printf(請(qǐng)重新輸入密碼:n);scanf( %s , s);printf(登錄成功!n);printf(注:你是管理員!n);typedef struct node1 int school; /* 院系編號(hào) */int record; /* 項(xiàng)目成績(jī) */struct n ode1 *n ext;/* 鏈域 */Schools ;typedef struct int item; /*項(xiàng)目編號(hào)*/Schools *firstschool; /*鏈域指向鏈表中第一個(gè)結(jié)點(diǎn) */ITEM ;typedef struct

8、 int乙/*項(xiàng)目總數(shù) */ITEM a MAX ;ALLitems ;typedef struct node2 int item; /*該院系獲獎(jiǎng)的項(xiàng)目*/int record; /* 項(xiàng)目成績(jī) */struct node2 *next;/* 鏈域 */Items ;typedef struct int school; /* 院系編號(hào) */int score; /* 院系總分 */int boys; /*男團(tuán)體總分*/int girls; /*女團(tuán)體總分*/Items *firstitem;/*鏈域指向鏈表中第一個(gè)獲獎(jiǎng)項(xiàng)目的結(jié)點(diǎn)*/SCHNode ;typedef struct int n;

9、 /*院系總數(shù)*/SCHNode b MAX ;ALLNode ;ALLitems *g1;ALLNode *g2;void funct1( ALLitems *g1 , ALLNode *g2 )Schools *p1;Items *p2;int i = 1, j, k, m, w, h, x;p1 = ( Schools *)malloc( sizeof (Schools );p2 = ( Items *)malloc( sizeof (Items );if (!p1 II !p2)exit(1);printf( n*輸入各個(gè)項(xiàng)目信息*nn);printf(輸入男子項(xiàng)目總數(shù)m:);scan

10、f( %d , &m);if (m 20)printf(輸入有誤,m是20以?xún)?nèi)的整數(shù),請(qǐng)重新輸入:);scanf( %d , &m);printf(輸入女子項(xiàng)目總數(shù) w:);scanf( %d , &w);if (w 20)printf(輸入有誤,w是20以?xún)?nèi)的整數(shù),請(qǐng)重新輸入:);scanf( %d , &w);printf(輸入?yún)⒓舆\(yùn)動(dòng)會(huì)的院系總數(shù)n:);scanf( %d , & g2 -n);if (g2 -n n20)printf(輸入有誤,n是20以?xún)?nèi)的整數(shù),請(qǐng)重新輸入:);scanf( %d , & g2 -n);g1 -z = m + w;printf(則項(xiàng)目編號(hào)為男子 1-%

11、d,女子 d-%d , m, m + 1, g1 -z);printf( nn* 記錄運(yùn)動(dòng)會(huì)成績(jī) *);printf( nn(輸入 0標(biāo)志結(jié)束)n);printf( t項(xiàng)目1:50米、項(xiàng)目2:100米、項(xiàng)目3:200米、項(xiàng)目4:400米、項(xiàng)目5:1500米、n);printf( t項(xiàng)目6:跳高、項(xiàng)目7:跳遠(yuǎn)、項(xiàng)目8:標(biāo)槍、項(xiàng)目9:鉛球、項(xiàng)目10:鐵餅n);for (k = 1; k z; k+)g1 -ak.item = k;g1 -ak.firstschool = NULL ;for (k = 1; k n; k+)g2 -bk.school = k;g2 -bk.firstitem = 0

12、;g2 -bk.score = 0;g2 -bk.boys = 0;g2 -bk.girls = 0;g2 -b0.score = 0;g2 -b0.boys = 0;g2 -b0.girls = 0;while (i != 0)printf( n項(xiàng)目:”);scanf( %d , &i);if (i != 0)n);printf(請(qǐng)輸入前三名:h = 3;do printf(第d名:院系(院系編號(hào)為數(shù)字),h);scanf( %d , &x);pl = ( Schools *)malloc( sizeof (Schools );p1-school = x;p2 = ( Items *)mal

13、loc( sizeof (Items );p2-item = i;if (h =3) p2-record =p1-record = 2;if (h =2) p2-record =p1-record = 5;if (h = 1) p2-record = p1-record = 10;p1- n ext =g1 -ai.firstschool;g1 -ai.firstschool = p1;p2-next =g2 -bx.firstitem;*累計(jì)總分*/*累計(jì)男團(tuán)體總分/*累計(jì)女團(tuán)體總分 */g2 -bx.firstitem = p2;g2 -bx.score = g2 -bx.score +

14、p2-record;if (i bx.boys = g2 _bx.boys + p2-record;*/else g2 -bx.girls = g2 -bx.girls + p2-record;h-; while (x != 0 & h != 0);void save()FILE *fp1, *fp2;fp1 = ( FILE *)malloc( sizeof (FILE);fp2 = ( FILE *)malloc( sizeof (FILE);if (fp1 = fopen(sports1 , wb ) = NULL )printf( cannot open file.n);return

15、;if (fwrite(g1, sizeof (ALLitems ), 1, fp1) != 1) printf( file write error.n );fclose(fp1);if (fp2 = fopen(sports2 , wb ) = NULL )printf( cannot open file.n);return ;if (fwrite(g2, sizeof (ALLNode ), 1, fp2) != 1) printf( file write error.n );fclose(fp2);/*輸出各院系總分*/void funct2( ALLNode *g2)int k;pri

16、ntf( nn* 輸出各院系總分*n);printf(院系編號(hào)t 總分n);for (k = 1; k n; k+)printf( %dttt %dn, k, g2 -bk.score);printf( n);system( pause);printf(按任意鍵返回主菜單);getchar();/*按院系編號(hào)排序輸出*/void funct3( ALLNode *g2) int k;Items *p2;p2 = ( Items *)malloc( sizeof (Items );printf( nn*按院系編號(hào)排序輸出*n);printf(院系編號(hào)ttt獲獎(jiǎng)情況n);scanf( %d , &

17、k);for (k = 1; k n; k+)printf( ttt%dt, k);p2 = g2 -bk.firstitem;while (p2 != NULL )printf( tt 項(xiàng)目 %d:得%d 分, p2-item, p2-record);p2 = p2-n ext;printf( n);printf( n);system( pause);printf(按任意鍵返回主菜單.);getchar();void funct4( ALLNode *g2)/*按院系總分排序輸出*/int i, j, k;Items *p2;printf( nn* 按院系總分排序輸出 *n);printf(

18、院系編號(hào)tt總分n);scanf( %d , &k);/prin tf(輸入要查詢(xún)的項(xiàng)目編號(hào):”);for (i = 2; i n; i+)printf( %dt , k);p2 = g2 -bk.firstitem;while (p2 != NULL )printf( %d tt%dn, g2 -bk.school, g2 -bk.score);p2 = p2-n ext;printf( n);g2 -b0.score =g2 -bi.score;g2 -b0.boys =g2 -bi.boys;g2 _b0.girls =g2 -bi.girls;g2 -b0.school =g2 -bi

19、.school;j = i - 1;while (g2 -b0.scorebj.score&j0)g2 -bj + 1.score = g2 _bj.score;g2 -bj + 1.boys =g2 -bj.boys;g2 -bj + 1.girls =g2 -bj.girls;g2 -bj + 1.school=g2 -bj.school;j-;g2 -bj + 1.score =g2 -b0.score;g2 -bj + 1.boys =g2 -b0.boys;g2 -bj + 1.girls =g2-b0.girls;g2 -bj + 1.school = g2 -b0.school;

20、for (k = 1; k n; k+)printf( %d tt%dn, g2 -bk.school, g2-bk.score);system( pause);printf(按任意鍵返回主菜單.);getchar();void funct5( ALLNode *g2 )/*按男團(tuán)體總分排序輸出*/int i, j, k;Items *p2;p2 = ( Items *)malloc( sizeof (Items );printf( nn*按男團(tuán)體總分排序輸出*n);printf(院系編號(hào)tt男團(tuán)體總分 n);scanf( %d , &k);/prin tf(輸入要查詢(xún)的院系編號(hào):);for

21、(i = 2; i n; i+)printf( %dt , k);p2 = g2 -bk.firstitem;while (p2 != NULL )printf( %dtt%dn , g2-bk.school, g2-bk.boys);p2 = p2-n ext;printf( n);g2 -b0.score =g2 -b0.boys =g2 _b0.girls =g2 -bi.score;g2 -bi.boys;g2 -bi.girls;g2 -b0.school = j = i - 1;g2 -bi.school;while (g2 -b0.boysbj.boys&j0)g2 -bj +

22、1.score = g2 -bj.score;g2 -bj + 1.boys = g2 -bj.boys;g2 -bj + 1.girls = g2 -bj.girls;g2 -bj + 1.school = g2 -bj.school;j-;g2 -bj + 1.score = g2 -b0.score;g2 -bj + 1.boys = g2 -b0.boys;g2 -bj + 1.girls = g2 -b0.girls; g2 -bj + 1.school = g2 -b0.school;for (k = 1; k n; k+)g2 -bk.boys);/暫停等待/*按女團(tuán)體總分排序輸

23、出*/printf( %dtt%dn , g2 -bk.school,system( pause);printf(按任意鍵返回主菜單.);getchar();void funct6( ALLNode *g2)int i, j, k;Items *p2;p2 = ( Items *)malloc( sizeof (Items );printf( nn*按女團(tuán)體總分排序輸出*n);printf(院系編號(hào)tt女團(tuán)體總分n);scanf( %d , &k);/ prin tf(輸入要查詢(xún)的項(xiàng)目編號(hào):”);for (i = 2; i n; i+)printf( %dt , k);p2 = g2 -bk.

24、firstitem;while (p2 != NULL )printf( %dtt%dn , g2-bk.school, g2-bk.girls);p2 = p2-n ext;printf( n);g2 -b0.score =g2 -bi.score;g2 -b0.boys =g2 -bi.boys;g2 _b0.girls =g2 -bi.girls;g2 -b0.school =g2 -bi.school;j = i - 1;while (g2 -b0.girlsbj.girls&j0)g2 -bj + 1.score = g2 _bj.score;g2 -bj + 1.boys = g2

25、 -bj.boys;g2 -bj + 1.girls =g2 -bj.girls;g2 -bj + 1.school=g2 -bj.schoolj-;g2 -bj + 1.score =g2 -b0.score;g2 -bj + 1.boys =g2 -b0.boys;g2 -bj + 1.girls =g2-b0.girls;g2 -bj + 1.school = g2 -b0.school;for (k = 1; k n; k+)printf( %dtt%dn , g2 -bk.school, g2 -bk.girls);system( pause);printf(按任意鍵返回主菜單.);

26、getchar();void funct7( ALLNode *g2 )/*按院系編號(hào)查詢(xún)?cè)合的硞€(gè)項(xiàng)目情況*/int i, j;Items *p2;printf( n* 按院系編號(hào)查詢(xún)?cè)合的硞€(gè)項(xiàng)目情況*n);printf(輸入要查詢(xún)的院系編號(hào):”);scanf( %d , &);printf( t項(xiàng)目1:50米、項(xiàng)目2:100米、項(xiàng)目3:200米、項(xiàng)目4:400米、項(xiàng)目5:1500米、n);printf( t項(xiàng)目6:跳高、項(xiàng)目7:跳遠(yuǎn)、項(xiàng)目8:標(biāo)槍、項(xiàng)目9:鉛球、項(xiàng)目10:鐵餅n);printf(輸入要查詢(xún)的項(xiàng)目編號(hào):);scanf( %d , &j); |p2 = g2 -bi.firsti

27、tem;while (p2 != NULL )if (p2-item = j)printf(院系編號(hào):%dt 項(xiàng)目 %d:得%d 分n , i, p2-item,p2-record);p2 = p2-n ext;printf( n);system( pause);printf(按任意鍵返回主菜單.);getchar();void funct8( ALLitems *g1 )/*按項(xiàng)目編號(hào)查詢(xún)?nèi)〉妹蔚脑合?/int i;Schools *p1;printf( n*按項(xiàng)目編號(hào)查詢(xún)?nèi)〉妹蔚脑合?n);printf(輸入要查詢(xún)的項(xiàng)目編號(hào):”);scanf( %d , &i); |printf(項(xiàng)目

28、編號(hào)ttt取得名次的院系n);printf( %dt , i);p1 = g1 -ai.firstschool;while (p1 != NULL )printf(學(xué)校 %d:得%d 分 , p1-school, p1-record);p1 = p1- n ext;printf( nn);system( pause);printf(按任意鍵返回主菜單.);getchar();void main()int temp;printf(管理員請(qǐng)按1,普通用戶(hù)請(qǐng)按2n);scanf( %d , &temp);if (1 = temp)int t;void print_Passwd( void );whi

29、le (1)prin t_Passwd();break ;g2 = ( ALLNode *)malloc( sizeof (ALLNode );g1 = ( ALLitems *)malloc( sizeof (ALLitems ); if (!g2 | !g1)exit(1);/textcolor(WHITE);/textbackgrou nd(BLUE);/clrscr();system( cls);printf( tt*n);printf( tt運(yùn)動(dòng)會(huì)分?jǐn)?shù)統(tǒng)計(jì)系統(tǒng)n);printf( tt*n);printf( tt*1.輸入各個(gè)項(xiàng)目成績(jī)并存儲(chǔ)文件*tn);printf( tt*2.統(tǒng)計(jì)

30、各院系總分*tn);printf( tt*3.按院系編號(hào)排序輸出*tn);printf( tt*4按院系總分排序輸出*tn);printf( tt*5.按男團(tuán)體總分排序輸出*tn);printf( tt*6.按女團(tuán)體總分排序輸出*tn);printf( tt*7.按院系編號(hào)查詢(xún)?cè)合的硞€(gè)項(xiàng)目情況*tn);printf( tt*8.按項(xiàng)目編號(hào)查詢(xún)?nèi)〉妹蔚脑合?n):Jprintf( tt*0.退出*n):Jprintf( tt* * * * * * * * * * * * * * * * * * * * * *n);printf( ttn);printf( ttn);printf( ttn);p

31、rintf( tt請(qǐng)選擇(0-8):);Ioop1:scanf( %d , &t);system( cis);switch (t)case 1:funct1(g1, g2); save(); break ;case 2:fu nct2(g2);breakcase 3:fu nct3(g2);breakcase 4:fu nct4(g2);breakcase 5:fu nct5(g2);breakcase 6:fu nct6(g2);breakcase 7:funct7(g2);break ;case 8:funct8(g1);break ;case O:exit(O);default : pr

32、intf(輸入有誤,請(qǐng)重新選擇:);goto loop1; /clrscr();system( cls);elseint u;g2 = ( ALLNode *)malloc( sizeof (ALLNode );g1 = ( ALLitems *)malloc( sizeof (ALLitems ); if (!g2 | !g1)exit(1);/textcolor(WHITE);/textbackgrou nd(BLUE);/clrscr();system( cls);for (;);printf( tt運(yùn)動(dòng)會(huì)分?jǐn)?shù)統(tǒng)計(jì)系統(tǒng)n);printf( tt* * * * * * * * * * *

33、* * * * * * * * * * * *n);printf( tt* * * * * * * * * * * * * * * * * * * * * * *nprintf( tt*1.統(tǒng)計(jì)各院系總分*tn);printf( tt*2.按院系編號(hào)排序輸出*tn);printf( tt*3.按院系總分排序輸出*tn);printf( tt*4.按院系編號(hào)查詢(xún)學(xué)校某個(gè)項(xiàng)目情況*tn);printf( tt*5.按項(xiàng)目編號(hào)查詢(xún)?nèi)〉妹蔚脑合?n);printf( tt*0.退出*n);printf( tt* * * * * * * * * * * * * * * * * * * * * *n);

34、printf( ttn)5printf( ttn)5n);printf( ttprintf( tt請(qǐng)選擇(0-5):);Ioop2:scanf( %d , &u);system( cls);switch (u)case 1:fu nct2(g2);break ;case 2:fu nct3(g2);break ;case 3:fu nct4(g2);break ;case 4:fun ct7(g2);break ;case 5:fu nct8(g1);break ;case 0:exit(0);default : printf(輸入有誤,請(qǐng)重新選擇:);goto loop2; /clrscr(

35、);system( cls);五、測(cè)試數(shù)據(jù)及其結(jié)果分析ISS C:jVi nd ows system 3 2eim dl.理員請(qǐng)技-昔通用戶(hù)請(qǐng)拆 龜入登錄名: ftLdmxn請(qǐng)篩入密碼:admin圖一登錄界面圖二管理員界面圖三普通用戶(hù)界面名名名3 2 1 a-zTpgpSB*jan入各”I *頁(yè)日彳呂息nWA子項(xiàng)目旨熬時(shí)“ 則項(xiàng)目編號(hào)* 爲(wèi)瞬辭蠹髓E斗*4己錄運(yùn)動(dòng)=成績(jī)*輸競(jìng) 名讎 丄U-為為為 寺亶 頁(yè)緒 工青-fsbe圖四輸入信息SB C:W I nd o wsVys-tem 3 2 cmd. exe囂計(jì)的院系編時(shí)援男團(tuán)體總分排序輸出一 編號(hào)男團(tuán)體總分請(qǐng)按任意鍵繼續(xù)-n 00 0 4 12

36、圖五男團(tuán)體總分排序匚:YV i nd W5systetm 32cm d .exe進(jìn)咼3 KJf , J”5S i -1 6目目項(xiàng)項(xiàng)青按任肯鍵繼_系院3:8:頂 院的目cits 詢(xún)?cè)冺?xiàng)頂詢(xún):2 杳査 、查號(hào) 號(hào)要米一圧詈 吏胴#x- 系輸:1=0秒 院 2 7 安目目 r碩頂書(shū)占雪目情況*亦0米、4:400米、Ig5:1500米、標(biāo)槍、頂目9:鉛賽*頂目1肌鐵餅 目始號(hào)汶頂目得5分圖六查詢(xún)?cè)合的硞€(gè)項(xiàng)目結(jié)果分析(1)進(jìn)入管理員界面需要正確輸入密碼,普通用戶(hù)不需要輸入密碼,但管理員界面的功 能更多(2)輸入信息時(shí)項(xiàng)目和院系編號(hào)必須輸入數(shù)字且不能超過(guò)預(yù)先設(shè)定的項(xiàng)目總數(shù)和院系總數(shù)(3 )總分排序和團(tuán)體總

37、分排序要先輸入項(xiàng)目編號(hào),進(jìn)行查詢(xún)和排序時(shí)也需要輸入正確的 院系編號(hào)和項(xiàng)目編號(hào)六、調(diào)試過(guò)程中的問(wèn)題(1) 運(yùn)行時(shí)出現(xiàn) run time check failure #2 或 run time check failure#3說(shuō)明有變量 越界或有變量沒(méi)有初始化,需要擴(kuò)大變量范圍或給變量賦值(2)調(diào)試時(shí)出現(xiàn)亂碼或程序終止則很有可能輸入了錯(cuò)誤的數(shù)據(jù)類(lèi)型,需要重啟程序 并正確輸入數(shù)據(jù)類(lèi)型(3)選擇普通用戶(hù)后無(wú)法顯示菜單界面只有光標(biāo)但輸入數(shù)字可以選擇功能,問(wèn)題是 system( ” cls ”)函數(shù)放在了選擇之前導(dǎo)致了清屏(4) 結(jié)構(gòu)體定義時(shí)缺最后的分號(hào),struct node1 應(yīng)改為struct node1 ;(5 )在定義字符串變量時(shí)要指定數(shù)據(jù)長(zhǎng)度七、課程設(shè)計(jì)總結(jié)經(jīng)過(guò)一個(gè)星期的C語(yǔ)言上機(jī)實(shí)驗(yàn)我學(xué)到了很多,也對(duì)C語(yǔ)言的特點(diǎn)和用法有了進(jìn)一 步的了解和體會(huì),C語(yǔ)言與其他語(yǔ)言相比有著獨(dú)有的特點(diǎn),主要體現(xiàn)在以下幾個(gè)方面:1.簡(jiǎn) 潔緊湊、靈活方便、2.運(yùn)算符豐富、3.數(shù)據(jù)結(jié)構(gòu)豐富、4.C語(yǔ)法限制

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論