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

正文內(nèi)容

使用c面向?qū)ο缶幊痰墓べY管理系統(tǒng)的設(shè)計與實現(xiàn)(編輯修改稿)

2025-02-25 22:06 本頁面
 

【文章內(nèi)容簡介】 1992. [7]江明德 . 面向?qū)ο蟪绦蛟O(shè)計 . 電子工業(yè)出版社, 1993. [8]呂鳳翥.C++語言程序設(shè)計.電子工業(yè)出版社, 2021. 16 附錄:源代碼 (帶注釋) include include include include const int EMP=1000。//學(xué)院教工 總?cè)藬?shù)(跟據(jù)需要可以放縮) ************************ void numbertochar(char*,double)。 //定義基類 教工 類 employee****************************************************** class employee{ private: // 姓名 教 工號 職位 性別 電話號碼 ************************ char name[10],number[10],post[10],sex[10],telephone[15]。 int age。//年齡 ************************************************************* double monthwages。//月工資 ************************************************* static long employees。//學(xué)院教工 人數(shù) *************************************** public: long getemployees() { return employees。 } char*getnumber() { return number。 } char*getname() { return name。 } char*getpost() { return post。 } char*getsex() { return sex。 } char*gettelephone() { return telephone。 } 17 int getage() { return age。 } double getmonthwages() { return monthwages。 } void setnumber(char temp[]) { renumber: if(strlen(temp)15) { cout輸入錯誤 (不能多余 15個字母或 5個漢字 )!請重新輸入。 \n。 char temp1[15]。 cout教 工 號 :\t。 cintemp1。 if(strlen(temp1)15) goto renumber。 else strcpy(number,temp1)。 } else strcpy(number,temp)。 } void setname(char temp[]) { renumber: if(strlen(temp)15) { cout輸入錯誤 (不能多余 15個字母或 5個漢字 )!請重新輸入。 \n。 char temp1[10]。 cout姓 名 :\t。 cintemp1。 if(strlen(temp1)15) goto renumber。 else strcpy(name,temp1)。 } else strcpy(name,temp)。 employees++。 } void setpost(char temp[]) { renumber: if(strlen(temp)10) 18 { cout輸入錯誤 (不能多余十個字母或五個漢字 )!請重新輸入。 \n。 char temp1[10]。 cout職 位 \t。 cintemp1。 if(strlen(temp1)10) goto renumber。 else strcpy(post,temp1)。 } else strcpy(post,temp)。 } void setsex() { cout性別 (男; 女 ):。 resex: char temp1[5]。 cintemp1。 if(strlen(temp1)==1) { switch(temp1[0]) { case 39。139。: strcpy(sex,男 )。 break。 case 39。239。: strcpy(sex,女 )。 break。 default: cout錯誤(請選擇 1或 2) 。 goto resex。 } } else { cout錯誤(請選擇 1或 2) 。 goto resex。 } } void settelephone(char temp[]) { retelephone: if(strlen(temp)20) { cout輸入錯誤 (不 能多余二十個數(shù)字 )!請重新輸入。 \n。 19 char temp1[20]。 cout電 話 號 碼 :\t。 cintemp1。 if(strlen(temp1)20) goto retelephone。 else strcpy(telephone,temp1)。 } else strcpy(telephone,temp)。 } void setage(int temp) { renumber: if(temp=18||temp65) { cout輸入錯誤!請重新輸入。 \n。 int temp1。 cout年 齡 :\t。 cintemp1。 if(temp1=0||temp1120) goto renumber。 else age=temp1。 } else age=temp。 } void setmonthwages(double temp) { monthwages=temp。 } }。 long employee::employees=0。 //講師 類的定義 ***************************************************************** class technician: public employee{ protected: static int technicians。//用來記數(shù) 講師 的數(shù)量 ******************************** public: int gettechnicians() { return technicians。 } void setnumber(char temp[])
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1