freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

c語言學生信息管理系統(tǒng)報告(編輯修改稿)

2025-01-21 15:02 本頁面
 

【文章內容簡介】 按姓名查詢數(shù)據(jù)顯示如下: 19 六、 調試過程中的問題 問題一、系統(tǒng)報錯: undeclareed identifier( i是沒有聲明的變量 ) 解決辦法及步驟:查看定義的變量,增加變量 i的定義,再使用該變量。 問題二、系統(tǒng)報錯: missing 39。39。before 39。Type39。 解決辦法及步驟:將變量集中在語句快處開始處定義,變量定義不能放在可執(zhí)行語句中間 問題三、系統(tǒng)報錯: missing 39。39。 before 39。a39。 解決辦法及步驟:找到出錯位置,添加分號。 問題四、程序不能執(zhí)行 解決辦法及步驟: 關閉可執(zhí)行文件。 問題五、函數(shù)功能無法實現(xiàn) 解決辦法及步驟:分析函數(shù)代碼,改變部分代碼,使之執(zhí)行函數(shù)功能。 問題六、輸出信息為一段亂碼 解決辦法及步驟: 一個個檢查格式轉換說明符,最后發(fā)現(xiàn)格式轉換說明符錯誤,以及部分變量類型錯誤。 問題七、學生信息未分行顯示 解決辦法及步驟:在輸出函數(shù)中增加代碼: printf(\n)。 問題八、學生平均分數(shù)明顯偏大 解決辦法及步驟:查看變量,發(fā)現(xiàn)本應該定義為局部變量的 m定義為全局變量,改變變量m的定義位置。 問題九、 運行后發(fā)現(xiàn)死循環(huán) 解決辦法及步驟:逐步查看代碼,確定發(fā)生 錯誤的函數(shù),結果發(fā)現(xiàn)格式轉換說明符錯誤,改變錯誤的格式轉換說明符。 問題十、文件無法打開 解決辦法及步驟:查看數(shù)據(jù)文件,發(fā)現(xiàn)數(shù)據(jù)文件丟失。 20 七、 課程設計總結 我的 C 語言程序設計課程的考試題目是學生信息管理系統(tǒng)。 通過這次課程設計我對 C語言的神奇功能更加佩服(只是一個程序運行卻可以完成學生管理系統(tǒng)功能),我默默在心里發(fā)誓一定要把 C 語言學好,而且現(xiàn)在正在學習 C語言,熟練的掌握編程的方法。本次課程設計,我設計的是學生管理系統(tǒng),本程序若完全靠現(xiàn)有的知識,是很難編寫出來的,幸虧有我的指導老師閔麗 娟老師的耐心指導以及同學們的無私幫助,我才能順利完成。 經過兩周的課程設計,覺得學到挺多的東西,開始時都不知道怎么開始,覺得好擔心,什么都不會,做不出來怎么辦?看了書,書中有例題,而且有這方面功能的函數(shù),可以參考,就一個小函數(shù)一個小函數(shù)試試,雖然是按書中的,有時還是有很多錯誤,有時改來改去都運行不了很著急,最后可以運行時很開心,不懂得問問同學,學到不少知識。這兩周的課程設計讓我們鞏固以前的知識并在此基礎上有所突破。 經過這兩周的學習覺得 C語言挺有趣的,也好難!我們了解到要設計一個完整的程序,其中最難 的可能就屬設計整個程序的框架,其中可能會需要經過很多次的修改與調試,所以必須要有耐心,直至最后設計出自己想要的程序。 感謝這次的課程設計,它使我更加深刻地體會到 c 語言程序編寫過程的嚴謹與細致,還有就是無論做任何事都要有耐心。當然團隊合作也是非常重要的一個環(huán)節(jié),這會使你在學習過程中倍感輕松。 只要肯動手,我們就一定能行的,這是我這次作業(yè)中的最大體會。 21 附:各模塊的代碼(不屬于報告內容) //文件 的完整代碼 : ifndef _NODE define _NODE struct Student { char num[10]。 char name[20]。 char sex[10]。 char birthday[10]。 int score[3]。 int total,rank。 double aver,average。 }。 typedef struct Student Type。 const int sizeStu=sizeof(Type)。 struct node { Type data。 struct node *next。 }。 const int size=sizeof(struct node)。 endif //文件 的完整代碼 : ifndef _PREP define _PREP include include void printNode(Type data) 22 { int i。 printf(%9s ,)。 printf(%15s ,)。 printf(%8s ,)。 printf(%10s ,)。 for(i=0。i3。i++) { printf(%8d ,[i])。 } printf( %8d ,)。 printf(%6d ,)。 } void sortprintNode(Type data) { printf(%9s ,)。 printf(%15s ,)。 printf(%8s ,)。 printf( %8d ,)。 } void sort_printNode(Type data) { int i。 printf(%9s ,)。 printf(%15s ,)。 printf(%8s ,)。 for(i=0。i3。i++) { 23 printf(%8d ,[i])。 } printf( % ,)。 } void rankprintNode(Type data) { printf(%9s ,)。 printf(%15s ,)。 printf(%8s ,)。 printf(%8d ,)。 printf(%8d ,)。 } void averprintNode(Type data) { printf(%9s ,)。 printf(%15s ,)。 printf(%8s ,)。 printf(% ,)。 } void readNode(Type *pdata) { int i。 printf(\nInput one student\39。s information\n)。 printf(num:)。 scanf(%s,amp。pdatanum)。 printf(name:)。 scanf(%s,pdataname)。 24 printf(sex: )。 scanf(%s,pdatasex)。 strcpy(pdatabirthday ,)。 printf(birthday:)。 scanf(%s,pdatabirthday)。 pdataaverage=0。 pdataaver=0。 pdatatotal=0。 printf(Input three courses of the student:\n)。 for(i=0。i3。i++) { scanf(%d,amp。pdatascore[i])。 } pdatarank=0。 } int endWith(Type data) { if(strcmp(,NUT)==0) return 1。 else return 0。 } int equal(Type data1,Type data2,int condition) { if(condition==1) if(strcmp(,)==0)//如果參數(shù) condition 的值為 1,比較學號 25 return 1。 else return 0。 else if(condition==2) //如果參數(shù) condition 的值為 2,比較姓名 if(strcmp(,)==0) return 1。 else return 0。 else return 1。 } int larger(Type data1,Type data2,int condition) { if(condition==1) if(strcmp(,)=0) //比較學號 return 1。 else return 0。 if(condition==2) if(strcmp(,)=0) //比較姓名 return 1。 else return 0。 else if(condition==3) return [1][1]。 else if(condition==4) return [2][2]。 else if(condition==5) return [3][3]。 else if(condition==6) return 。 return 1。 } endif 26 //文件 的完整代碼 : include include include void createFile() { Type data。 FILE *fp。 if((fp=fopen(,wb))==NULL) { printf(can not open file !\n)。 exit(0)。 } printf(input students\39。 information,ended with num=NUT\n)。 readNode(amp。data)。 while(!endWith(data)) { fwrite(amp。data,sizeStu,1,fp)。 readNode(amp。data)。 } fclose(fp)。 } struct node *readFile(struct node *head) { Type data。 FILE *fp。 head=NULL。 if((fp=fopen(,rb))==NULL) 27 { printf(can not open file!\n)。 exit(0)。 } fread(amp。data,sizeStu,1,fp)。 while(!feof(fp)) { head=Insert(head,data,1)。 printf(\n)。 fread(amp。data,sizeStu,1,fp)。 } fclose(fp)。 return head。 } void saveFile(struct node *head) { struct node *p=head。 FILE *fp。 if((fp=fopen(,wb))==NULL) { printf(can not open file!\n)。 exit(0)。 } if(head==NULL) { printf(\nNo Records\n)。 return。 } while(p) 28 { fwrite(amp。pdata,sizeStu,1,fp)。 p=pnext。 } fclose(fp)。 } //文件 的完整代碼 : ifndef _LIST define _LIST include struct node*CreateBackward()。 struct node*CreateForward()。 struct node*CreateInsert()。 struct node*printList(struct node*head)。 struct node*SearchNode(struct node*head,Type data,int condition)。 struct node*InsertAfter(struct node*head,Type data)。 struct node*InsertOrder(struct node*head,Type data,int condition)。 struct node*Delete(struct node*head,Type data)。 struct node*Reverse(struct node*head)。 struct node*printList(struct node*head) //鏈表的遍歷 { struct node*p。 if(head==NULL) // 如果鏈表原來 為空 { printf(\nNo Records\n\n)。//輸出提示信息,返回 29 return NULL。 } for(p=head。p。p=pnext) //p 從頭指針開始,每
點擊復制文檔內容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1