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

正文內(nèi)容

學生成績管理系統(tǒng)c編程含源碼嵌套模板1資料-文庫吧資料

2024-08-16 11:58本頁面
  

【正文】 istringstream stream(line)。 cinxingming。 fstream outfile(,ios::trunc|ios::out)。 string xingming,line,str,name。 break。y39。 cinc。n39。amp。y39。 cinc。 i++。 j++。 coutendl。 } char h。 if(!file) { cout can not open.\n。 ()。 return。 (,ios::out|ios::app)。 cinenglish。 cincpp。 cinmath。 cinnumber。 cinname。 char c。 int number。 //重復輸入 break。y39。 }while(chris1==0)。 cinc。n39。amp。y39。 chris1=0。 cout數(shù)據(jù)錄入成功,想繼續(xù)錄入嗎(y/n)endl。 s[i]=new Tstu(name, number,math, cpp, english)。 ()。 while((ch)) coutch。 return。 (,ios::in)。 } outfilename 學號:number 數(shù)學成績:math C++成績:cpp 外語成績:englishendl。 if(!file){ cout can not open.\n。 fstream outfile,infile。 cout請輸入英語成績:endl。 cout請輸入C++成績:endl。 cout請輸入數(shù)學成績:endl。 cout請輸入學號:endl。 do{ cout請輸入姓名:endl。 int number。 do{ switch(p) { case 1: //數(shù)據(jù)的錄入 { char c。 else cout指令錯誤!請重新輸入:endl。amp。 //用于判斷do—while語句 do //判斷輸入是否正確 { cinp。 //全局變量,用于做每個錄入數(shù)據(jù)的下標 int j=0。 //類定義的指針將所錄入的數(shù)據(jù)按類中的形式分別存儲 ofstream *file[100]。 //全局變量,用于選擇菜單時的輸入 char w。 cout選擇相關(guān)操作請輸入相對的括號里的阿拉伯數(shù)字及字母!endl。 cout(10)按總分查詢排名endl。 cout(9)各科不及格人數(shù)endl。 cout成績統(tǒng)計:endl。 cout(6)按姓名查詢endl。 cout查詢:endl。 cout(3)刪除學生endl。 cout(1)數(shù)據(jù)錄入endl。 cout請選擇您需要的操作!endl。 return average。 return sum。 //得到c++成績 english=eng。 //得到學號 math=ma。 Tstu::Tstu ( char n[20], int num,float ma,float cj,float eng ) { strcpy(name,n)。 //得到平均分的函數(shù) friend void main()。 float getsum()。 public: Tstu() {}。 int number。六、參考資料C++程序設計 譚浩強 清華大學出版社附錄:源程序 includeiostream includestring includefstreamincludesstreamincludeiomanipusing namespace std。理論聯(lián)系實際,加深和鞏固所學的理論知識,提高實踐能力和計算機的綜合運用能力。程序?qū)崿F(xiàn)上,設計了簡單的查詢界面,將各個功能集中出來按照程序編寫原則,便于查詢。五、總結(jié)此次c++課程設計,在指導教師的精心教導下,我們學會了如何用C
點擊復制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1