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

正文內(nèi)容

c課程設計--c程序設計語言-文庫吧資料

2025-06-11 04:46本頁面
  

【正文】 ath+stud[i].c_program+stud[i].english)/3。 cout大學英語 :endl。 coutC++程序設計 :endl。 cout高等數(shù)學 :endl。 cout姓名 :endl。 cout學號 :endl。 cout班級 :endl。 coutstud[i].class_0\tstud[i].num\tstud[i].name\tstud[i].math\tstud[i].c_program\tstud[i].english\tstud[i].averageendl。 cout班級 \t學號 \t姓名 \t高數(shù)\tc++\t英語 \t平均分 endl。 if(i==n) { cout=====提示:對不起,無該學生的成績…… endl。amp。 cins。 [中南大學 ] | 高級程序設計實踐 29 29 / 44 coutendl==== 修改學生成績 ====endl。 int s。 } } void Modify(Stu stud[]) //學生成績修改函數(shù) { system(cls)。 cout大學英語 :stud[i].englishendl。 cout高等數(shù)學 :stud[i].mathendl。 cout學號 :stud[i].numendl。 } else { coutendl。in) i++。 while((stud[i].nums)!=0amp。 cout請輸入需要查找學生的學號 :endl。 int i=0。 int n=Read(stud)。 system(pause)。 in。 [中南大學 ] | 高級程序設計實踐 27 27 / 44 cout班級 \t學號 \t 姓名 \t\t 平均分endl。 int n=Read(stud)。 } Write(stud,i)。 cinsign。 cout 平均分為: stud[i].averageendl。 }while(flag==0)。 if(stud[i].english100 ||stud[i].english1) cout對不起 ,請輸入 1100 之間的數(shù)字 !!\n。 cout 大學英語 :。 }while(flag==0)。 if(stud[i].c_program100 ||stud[i].c_program1) cout對不起 ,請輸入 1100 之間的數(shù)字 !!\n。 cout C++程序設計 :。 }while(flag==0)。 if(stud[i].math100 ||stud[i].math1) cout對不起 ,請輸入 1100 之間的數(shù)字 !!\n。 [中南大學 ] | 高級程序設計實踐 25 25 / 44 cout 高等數(shù)學 :。 cinstud[i].name。 goto loop。 if(stud[i].num==stud[ic].num) { cout 你輸入的學號已經(jīng)存在 !請重新輸入。 int c=0。 loop: cout 學號 :。) { cout 班級 :。sign!=39。amp。 while(sign!=39。 char sign。 //調(diào)用系統(tǒng)命令 cls,清除屏幕 int i=0。 return count 。 i++) { myFilestud[i].class_0stud[i].numstud[i].namestud[i].mathstud[i].c_programstud[i].englishstud[i].average。 for(int i=0。 (0)。 //異常終止一個進程,和下面的 exit()函數(shù)功能相似 exit(1)。t open!endl。 (D:\\,ios::in|ios::binary)。 } ()。 i=count。 myFilecountendlendl。 exit(1)。t open!endl。 //定義一個文件輸入輸出類 (D:\\,ios::out|ios::binary)。 }。 float average。 float c_program。 char name[8]。 //查找不及格學生的函數(shù) private: char class_0[20]。//學生成績寫入檔案函數(shù) friend int Read(Stu stud[])。 //學生成績排序函數(shù) friend void Insert(Stu stud[]) 。 //學生信息刪除函數(shù) friend void Output(Stu stud[]) 。 //學生成績查找函數(shù) friend void Modify(Stu stud[]) 。 //學生成績錄入函數(shù) friend void Statistic(Stu stud[])。 C++語言是在國內(nèi)外廣泛使用的一種計算機語言,相信除了以上優(yōu)點,還有許多我們還未發(fā)現(xiàn),希望能在以后的學習中有更深入的認識 七 .參考文獻 ( 1) C++程序設計(第二版) 譚浩強 編著 ( 2) visual C++從入門到精通 明日科技 編著 ( 3) C++編程思想 (美)??藸? 編著 劉宗田 譯 八 .附錄(完整源代碼 ) include iostream include fstream include include include using namespace std。 ( 3)在這次的課程設計過程中,通過查書的學習,對 C++的了解又加深了不少,包括類的結(jié)構(gòu),以及怎樣在類外訪問類類的私有成員等,我想下次再寫基于對象的程序時 ,一定會得心應手。 ( 2)在這次課程設計的過程中,最大的感覺就是對知識的不熟悉,一些 C++基礎知識似懂非懂,結(jié)果總要去查書才能寫出不 出錯誤的代碼,結(jié)構(gòu)就是耗費了大量的時間,事倍功半。 : 六 .課程設計總結(jié) ( 1)回顧此次課程設計,感慨良多,從剛拿到題目時的一臉茫然,到最后能成功解決,覺得此次課程設計我又學到了好多知識。 : 選擇功能 9,會顯示不及格學生的身份信息和其不及格科目: 如圖所示,這批學生里面有兩個學生的成績存在不及格現(xiàn)象,其中1002 號學生有一門不及格科目, 1004 號學生有兩門不及格科目。 } [中南大學 ] | 高級程序設計實踐 13 13 / 44 五 .程序運行結(jié)果 經(jīng)過上面的介紹,該系統(tǒng)的基本功能已經(jīng)具備,下面我們來介紹一下其實際使用效果:首先點擊運行,會出現(xiàn)一個功能菜單供你選擇: : 現(xiàn)在,我們首先選擇 1,輸入學生信息 : 需要多輸入幾次以供后來使用,還可以使用 6 插入學生信息。 coutstud[i].class_0\tstud[i].num\tstud[i].name\tstud[i].math\tstud[i].c_program\t stud[i].english\tstud[i].average\tstud[i].orderendl。 in。 coutendl。 } coutendl。//交換平均成績 stud[j+1].average=stud[j].average。 stud[j].english=s。 s=stud[j+1].english。//交換 C++成績 stud[j+1].c_program=stud[j].c_program。 stud[j].math=s。 s=stud[j+1].math。//交換姓名 strcpy(stud[j+1].name,stud[j].name)。 stud[j].num=k。 k=stud[j+1].num。 //交換班級序號 [中南大學
點擊復制文檔內(nèi)容
畢業(yè)設計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1