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

正文內(nèi)容

某學(xué)校人員信息管理教材-文庫(kù)吧

2025-03-25 00:57 本頁(yè)面


【正文】 39。\n39。)。 //使其能夠讀入字符串中的空格 is。 is。 is。 is。 is。 is。 return is。 //退出函數(shù) }friend ostream amp。operator( ostream amp。os,teacher amp。tea) //重載運(yùn)算符函數(shù)聲明{ os39。\n39。 os39。\n39。 os39。\n39。 os39。\n39。 os39。\n39。 os39。\n39。 os39。\n39。 os39。\n39。 return os。 //退出函數(shù) }void AddData() {system(cls)。 cout請(qǐng)輸入教工號(hào):。 cinnum。 for(int k=1。k11。k++) if(num==k) k=11。 if(k==11) { cout請(qǐng)輸入10以內(nèi)的教工號(hào)endl。 AddData()。 } cout請(qǐng)輸入教師姓名:。 cinname。 cout請(qǐng)輸入教師性別:。 cinsex。 cout請(qǐng)輸入教師工作系別部門(mén):。 cinmajor_or_department。 cout請(qǐng)輸入教師出生時(shí)間:。 cindate。 cout請(qǐng)輸入教師年齡:。 cinage。 cout請(qǐng)輸入教師職稱(chēng)(如教授/副教授/講師):。 cinjob。 cout請(qǐng)輸入教師工資:。 cinsalary。 try //處理教師工資合法性 {if (salary0) {throw salary。 } } catch(double ) { cout輸入有誤,請(qǐng)重新輸入endl。 main()。}}void DisplayData() { cout* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * endl。 cout教工號(hào) 姓名 性別 工作部門(mén) 出生時(shí)間 年齡 職稱(chēng) 工資endl。 cout* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * endl。 coutnum\tname\tsex\tmajor_or_department\tdate\tage\tjob\tsalaryendl。 cout* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * endl。}void save(ofstream amp。outf) {outf教工號(hào) 姓名 性別 工作部門(mén) 出生時(shí)間 年齡 職稱(chēng) 工資endl。 outfnum\tname\tsex\tmajor_or_department\tdate\tage\tjob\tsalaryendl。 } void load(ifstream amp。inf) { infnumnamesexmajor_or_departmentdateagejobsalary。 }}tea[10]。templatetypename Q Q Max(Q * x,int len) { Q max=x[0]。 for(int i=1。ilen。i++) max=maxx[i]? max:x[i]。 return i。 }void TAddData()//對(duì)教師類(lèi)對(duì)象的添加功能函數(shù){tea[T].AddData()。for(int i=0。i10。i++){ if(i!=Tamp。amp。tea[T].num==tea[i].num) { cout輸入教工號(hào)重復(fù),請(qǐng)重新輸入!endl。 main()。 }}cout添加記錄成功!endl。tea[T].DisplayData()。 T++。}void TDeleteData()//對(duì)教師類(lèi)對(duì)象的刪除功能函數(shù){ int n。 if(T==0) cout沒(méi)有可刪除的記錄!endl。 else { cout請(qǐng)輸入10以內(nèi)的教工號(hào):。 cinn。 for(int i=0。iT。i++) if(tea[i].num==n) for(。iT。i++) tea[i]=tea[i+1]。 T。 cout成功刪除記錄!endl。 }}void TUpdateData()//對(duì)教師類(lèi)對(duì)象的修改功能函數(shù){ int n。 if(T==0) cout沒(méi)有可刪除的記錄!endl。 else{ cout請(qǐng)輸入10以內(nèi)的教工號(hào):。 cinn。 for(int i=0。iT。i++) if(tea[i].num==n) { cout原有的記錄:endl。 tea[i].DisplayData()。 cout請(qǐng)輸入新的記錄:endl。 cout請(qǐng)輸入教師職稱(chēng)(如教授/副教授/講師):。 cintea[i].job。 cout請(qǐng)輸入教師工資:。 cintea[i].salary。 cout新的記錄:endl。 tea[i].DisplayData()。 } }}void TSearchData_num()//按教工號(hào)查詢教師類(lèi)對(duì)象{ int n。 cout請(qǐng)輸入10以內(nèi)的教工號(hào):。 cinn。 for(int i=0。iT。i++) if(tea[i].num==n) { tea[i].DisplayData()。 i=T。 } if(i==T) { cout查詢的記錄不存在,請(qǐng)重新輸入!endl。 TSearchData_num()。 }}void TSearchData_nam()//按姓名查詢教師類(lèi)對(duì)象 { char nam_s[30]。 cout請(qǐng)輸入教師名字:endl。 cinnam_s。 for(int j=0。jT。j++) if(strcmp(tea[j].name,nam_s)==0) { tea[j].DisplayData()。 j=T。 } if(j==T) { cout查詢的記錄不存在,請(qǐng)重新輸入!endl。 TSearchData_nam()。 }}void TSearchData_sex()//按性別查詢教師類(lèi)對(duì)象{ char sex_s[15]。 cout請(qǐng)輸入教師性別:endl。 cinsex_s。 for(int p=0。pT。p++) if(strcmp(tea[p].sex,sex_s)==0) { tea[p].DisplayData()。 p=T。 } if(p==T) { cout查詢的記錄不存在,請(qǐng)重新輸入!endl。 TSearchData_sex()。 }}void TFindMaxData()//對(duì)教師類(lèi)對(duì)象的最高工資查詢功能函數(shù){ int nu。 double t[10]。 for(int a=0。aT。a++) t[a]=tea[a].salary。 nu=Max(t,T)。 tea[nu1].DisplayData()。}void TDisplayData()//對(duì)教師類(lèi)對(duì)象按教工號(hào)升序排序打印功能函數(shù){ for(int i=1。i11。i++) { for(int c=0。cT。c++) { if(tea[c].num==i) { tea[c].DisplayData()。 } } }}void Tsave()//對(duì)教師類(lèi)對(duì)象的保存功能函數(shù){ ofstream outf(c:\\,ios::out)。 for(int i=0。iT。i++) tea[i].save(outf)。 ()。 cout成功保存記錄!endl。}void Tload()//對(duì)教師類(lèi)對(duì)象的讀取功能函數(shù){ ifstream inf(c:\\,ios::out)。 for(int i=0。iT。i++) tea[i].load(inf)。 ()。 cout成功讀取記錄!endl。 cout所有教師記錄:endl。 for(i=0。iT。i++) tea[i].DisplayData()。}class student:virtual public people{public:student(int n=0,char nam[30]=,char s[15]=,char o[50]=,char d[15]=,int a=0,int c=0,int e=0,int m=0):people(n,nam,s,o,d,a),score_chinese(c),score_english(e),score_mathematices(m){} int score_chinese。 int score_english。 int score_mathematices。 friend istream amp。operator( istream amp。is,student amp。stu)//重載運(yùn)算符函數(shù)聲明 { is。 (,30,39。\n39。)。 //使其能夠讀入字符串中的空格 is。 is。 is。 is。 is。 is。 is。 return is。 //退出函數(shù) } friend ostream amp。operator( ostream amp。os,student amp。stu)//重載運(yùn)算符函數(shù)聲明 { os39。\n39。 os39。\n39。 os39。\n39。 os39。\n39。 os39。\n39。 os39。\n39。 os39。\n39。 os39。\n39。 os39。\n39。 return os。 //退出函數(shù) } void AddData(){ system(cls)。 cout請(qǐng)輸入學(xué)號(hào):。 cinnum。 for(int k=1。k11。k++) if(num==k) k=11。 if(k==11) { cout請(qǐng)輸入10以內(nèi)的學(xué)號(hào)endl。 AddData()。 } cout請(qǐng)輸入學(xué)生姓名:。 cinname。 cout請(qǐng)輸入學(xué)生性別:。 cinsex。 cout請(qǐng)輸入學(xué)生專(zhuān)業(yè):。 cinmajor_or_department。 cout請(qǐng)輸入學(xué)生出生時(shí)間:。 cindate。 cout請(qǐng)輸入學(xué)生年齡:。 cinage。 cout請(qǐng)輸入學(xué)生語(yǔ)英數(shù)三科成績(jī):。 cinscore_chinese。 cinscore_english。 cinscore_mathematices。 } void DisplayData() { cout* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *endl。 cout學(xué)號(hào) 姓名 性別 專(zhuān)業(yè) 出生時(shí)間 年齡 語(yǔ)文成績(jī) 英語(yǔ)成績(jī) 數(shù)學(xué)成績(jī)endl。 cout* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *endl。 coutnum\tname\tsex\tmajor_or_department\tdate\tage\tscore_chinese\tscore_english\tscore_mathematicesendl。 cout* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *endl。 } void save(ofstream amp。outf) {outf
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1