【正文】
cendl。 cins。 strcpy(stud[j].sjk,stud[j+1].sjk)。 /*返回失敗信息 */ return(n)。 } int Delete(Student stud[],int n) //按名字查找信息,刪除信息。 coutsetw(15) 大學(xué)英語(yǔ) :。 : C 語(yǔ)言設(shè)計(jì)班級(jí)檔案管理 20 coutsetw(15) 姓名 :。 strcpy(stud[j].jsdl,t)。 strcpy(t,stud[j+1].sjk)。 strcpy(stud[j+1].name,stud[j].name)。jn1i。 } } coutsetw(15) 。 i%10==0) { coutsetw(15) setfill(39。 coutsetfill(39。 } return(n+i)。 coutsetw(15) 模擬電路 :。 coutsetw(15) 數(shù)據(jù)結(jié)構(gòu) :。 sign != 39。 } int Input(Student stud[],int n) //輸入數(shù)據(jù)。=39。 coutsetw(32) endl。||c39。 char jsjyy[20]。 : C 語(yǔ)言設(shè)計(jì)班級(jí)檔案管理 14 在課程設(shè)計(jì)過(guò)程中,收獲知識(shí),提高能力的同時(shí),我也學(xué)到了很多人生的哲理,懂得怎么樣去制定計(jì)劃,怎么樣去實(shí)現(xiàn)這個(gè)計(jì)劃,并掌握了在執(zhí)行過(guò)程中怎么樣去克服心理上的不良情緒。 }Student。 : C 語(yǔ)言設(shè)計(jì)班級(jí)檔案管理 6 第 4 章 類(lèi)的設(shè)計(jì)與分析 圖 Student類(lèi)圖 typedef class { public: char num[10]。由于學(xué)生輟學(xué),畢業(yè)等原因,及時(shí)對(duì)系統(tǒng)進(jìn)行更新,刪除一些沒(méi)用的信息,可以使系統(tǒng)更加優(yōu)化 查找并顯示學(xué)生資料模塊 主要功能是用來(lái)查找學(xué)生資料。在查看學(xué)生的資料,成績(jī)各方面的信息后,按任意鍵就可以返回到主菜單。本系統(tǒng)能對(duì)成績(jī)進(jìn)行輸入和輸出;能按姓名對(duì)學(xué)生進(jìn)行排序,并顯示學(xué)生資料、成績(jī)等,不過(guò)得以系統(tǒng)輸入學(xué)生資料、成績(jī)?yōu)榍疤?;能添加學(xué)生成績(jī)資料;能根據(jù)學(xué)生的姓名來(lái)查詢?cè)搶W(xué)生的成績(jī)資料,并修改或是刪除該學(xué)生信息;能夠從文件中讀取學(xué)生信息,并且添加到系統(tǒng)中;能把對(duì)系統(tǒng)所進(jìn)行的操作進(jìn)行保存,以及時(shí)更新系統(tǒng)中的數(shù)據(jù)。在主函當(dāng)數(shù)中設(shè)計(jì)一個(gè)菜單對(duì)這 11 個(gè)子數(shù)進(jìn)行管理。 課 程 設(shè) 計(jì) 報(bào) 告 課程名稱 C 語(yǔ)言程序設(shè)計(jì) 課題名稱 班級(jí)檔案管理 系統(tǒng) 專(zhuān) 業(yè) 機(jī)械設(shè)計(jì)及其自動(dòng)化 班 級(jí) 機(jī)設(shè) 1083 學(xué) 號(hào) 202020090305 姓 名 袁濤 指導(dǎo)教師 王穎 2020 年 9 月 15 日 湖南工程學(xué)院 課程設(shè)計(jì)(論文)任務(wù)書(shū) 學(xué)院(直屬系): 應(yīng)用技術(shù) 學(xué)院 時(shí)間: 2020 年 9月 8日 學(xué) 生 姓 名 袁濤 指 導(dǎo) 教 師 王穎 設(shè)計(jì)(論文)題目 C 語(yǔ)言 設(shè)計(jì)班級(jí)檔案管理 主要研 究?jī)?nèi)容 對(duì)一個(gè)有 N 個(gè)學(xué)生的班級(jí),通過(guò)該系統(tǒng)實(shí)現(xiàn)對(duì)該班級(jí)學(xué)生的基本信息進(jìn)行錄入、顯示、修改、刪除、保存等操作的管理。 關(guān)鍵詞 : C 語(yǔ)言 , 班級(jí)檔案管理系統(tǒng) , Microsoft Visual C++ : C 語(yǔ)言設(shè)計(jì)班級(jí)檔案管理 1 第 1 章 緒論 班級(jí)檔案管理系統(tǒng)有六十一種功能,把這 11個(gè)功能做成 11 個(gè)子函數(shù)。 主 菜 單 輸入學(xué)生資料模塊 輸出學(xué)生資料模塊 按學(xué)生姓名進(jìn)行排列模塊 添加學(xué)生資料模塊 按姓名查找,刪除該學(xué)生資料模塊 查找并顯示學(xué)生資料模塊 按姓名查找,修改學(xué)生資料模塊 從文件中 讀入數(shù)據(jù)模塊 儲(chǔ)存學(xué)生資料并退出系統(tǒng)模塊 : C 語(yǔ)言設(shè)計(jì)班級(jí)檔案管理 3 本系統(tǒng)根據(jù)學(xué)生成績(jī)管理的需要,而建立一個(gè) “ 學(xué)生成績(jī)管理系統(tǒng) ” ,以方便對(duì)成績(jī)的各項(xiàng)管理操作。具體包括學(xué)生的班級(jí),學(xué)號(hào),姓名和各科成績(jī)。在系統(tǒng)保存學(xué)生資料的前提下,想刪除某學(xué)生 的資料,可以輸入學(xué)生姓名,系統(tǒng)查找該學(xué)生資料后,就可以刪除了。在對(duì)系統(tǒng)進(jìn)行一系列操作,比如添加、刪除、修改學(xué)生資料后,對(duì)系統(tǒng)的最新操作進(jìn)行保存,及時(shí)更新系統(tǒng),方便下一次的操作。 char jsdl[20]。 通過(guò)這次課程設(shè)計(jì),使我對(duì) C 語(yǔ)言有了更進(jìn)一步的認(rèn)識(shí)和了解,要想學(xué)好它要重在實(shí)踐,要通過(guò)不斷的上機(jī)操作才能更好地學(xué)習(xí)它,我也發(fā)現(xiàn)我的好多不足之處,首先是自己在指法上還不行,經(jīng)常按錯(cuò)字母,通過(guò)學(xué)習(xí)也有所改進(jìn);再有對(duì) C 語(yǔ)言的一些標(biāo)準(zhǔn)庫(kù)函數(shù)不太了解,還有對(duì)函數(shù)調(diào)用的正確使用不夠熟悉,還有對(duì) C 語(yǔ)言中經(jīng)常出現(xiàn)的錯(cuò)誤也不了解,通過(guò)實(shí)踐的學(xué)習(xí),我認(rèn)識(shí)到學(xué)好計(jì)算機(jī)要重視實(shí)踐操作,不僅僅是學(xué)習(xí) C 語(yǔ)言 ,還是其它的語(yǔ)言,以及其它的計(jì)算機(jī)方面的知識(shí)都要重在實(shí)踐,所以后在學(xué)習(xí)過(guò)程中,我會(huì)更加注視實(shí)踐操作,使自己便好地學(xué)好計(jì)算機(jī)。 char sjk[10]。039。 coutsetw(32) endl。 coutsetfill(39。)。amp。 cinstud[n+i].name。 cinstud[n+i].jsjyy。 i++。 coutsetw(15) 。amp。)setw(35)endl。i++) for(j=0。 strcpy(t,stud[j+1].name)。 strcpy(stud[j].jsjzc,t)。 strcpy(stud[j+1].name,stud[j].jsdl)。 cinstud[n].num。 cinstud[n].sjk。 return(n)。 /*查找判斷 */ if(i==n) { printf(\t\t\t沒(méi)有發(fā)現(xiàn)該學(xué)生資料 !\n)。 strcpy(stud[j].jsjzc,stud[j+1].jsjzc)。 coutsetw(15) 輸入他(她)的姓名 :。 coutsetw(15) 數(shù)據(jù)結(jié)構(gòu) :stud[i].byylendl。 n=Insert(stud,n)。 cinfilename。inum。 return(n)。 if((fp=fopen(filename,w))==NULL) { coutsetw(15) 無(wú)法打開(kāi)文件 endl。 } fclose(fp)。 coutsetw(15) 。 break。 break。 n=Delete(stu,n)。 break。 break。 to discipline a ruler, often the control inspection, and consciously in the ideological red line to draw the row Ming Good accumulation is indeed the bottom line, so that the heart has fear, said to have quit, the line has ended. Attached: indifferent to heart, calmly to the table in our life, there are many unpredictable things will happen, some good, some bad things, we cannot control is powerless to stop, but with time, you will find in life sometimes turns out to be not good, some bad things finally turned out to be a good thing, but then we muddy however did not know, this is the life teach us things. 1, life can be plex, can also be simple. Want simple life of precipitation, to have enough time to reflect, to make Bee : C 語(yǔ)言設(shè)計(jì)班級(jí)檔案管理 27 more perfect. Life is the most important thing is not to win, but the struggle。 I am not afraid of the truth to tell the best friend, I39。 now want anything, for fear that others know, or like to lose the same. 9, the heart move, everything in the world is followed by birth, Rangrang, important thing is often the most difficult to open one39。t lose your life and the life, respectively is: the former is a we experienced cannot escape in a day finally will last minute, while the latter is our persistent, we want to cherish the memory of those people and things. 14, learn to smile, learn to strong, the world you know so many people, so many people and you are, you cannot change also can39。 but the most important is good to cherish their own. 21, life, select the plex, is to choose the pain。s two laws, doing practical play highway. 2020 October 18, the Central Committee of the Communist Party of China promulgated the implementation of the the probity of the Communist Party of China selfdiscipline criterion and Chinese Communist Party discipline and punishment regulations. We Heyuan male passersby to respond positively to the call of the Central Committee of the party, earnestly anize the study party two regulations, truly grasp the essence and gist, and in their respective positions, to hold the bottom line of the discipline, build a strong ideological line of defense, with the courage to play, the courage to fight t