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

正文內(nèi)容

高校人事管理系統(tǒng)(編輯修改稿)

2025-05-04 22:33 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 erson, sizeof(person))。 count++。 if( ()) { cout 未找到該用戶(hù)信息! endl。 break。 } if(strcmp(name, ()) == 0) { cout 該用戶(hù)信息已找到! endl。 recondNumbers = ()。 //獲取原編號(hào) cout person endl。 (recondNumbers)。 //將獲取的編號(hào)賦值與新數(shù)據(jù) ( (count1)*sizeof(insteadPerson), ios::beg)。 ((char *)amp。insteadPerson, sizeof(insteadPerson))。 ()。 cout 用戶(hù) () 的信息已刪除! endl。 break。 } } } else { cout 請(qǐng)輸入要?jiǎng)h除的人員編號(hào):。 cin number。 ()。 while( !()) { ((char *)amp。person, sizeof(person))。 count++。 if(()) { cout 未找到該用戶(hù)信息! endl。 break。 } if( () == number) { cout 該用戶(hù)信息已找到! endl。 recondNumbers = ()。 //獲取原編號(hào) cout person endl。 (recondNumbers)。 //將獲取的編號(hào)賦值與新數(shù)據(jù) ( (count1)*sizeof(insteadPerson), ios::beg)。 ((char *)amp。insteadPerson, sizeof(insteadPerson))。 ()。 cout 編號(hào) () 用戶(hù)信息已刪除! endl。 break。 } } } }//顯示函數(shù)void showDataFile(fstream amp。 file){ Informaion person。 long posn, posu。 ()。 (0L, ios::beg)。 //檢測(cè)是否為空文件 posn = ()。 (0L, ios::end)。 posu = ()。 if( posu == posn ) cout 文件為空! endl。 else { ()。 (0L, ios::beg)。 while( !() ) { ((char *)amp。person, sizeof(person))。 if( ()) break。 if( () == 0 ) cout 編號(hào) () 的信息已刪除!可寫(xiě)入新數(shù)據(jù)!\n endl。 else cout person endl。 } }}//功能統(tǒng)計(jì)函數(shù)void recondMaion(fstream amp。 file){ Informaion person。 tatolMaion recond。 ()。 (0L, ios::beg)。 if(!file) { cout 打開(kāi)文件失敗! endl。 exit(0)。 } while(!()) { ((char *)amp。person, sizeof(person))。 if(()) break。 if(strcmp((), 行政人員) == 0 || strcmp((),教師 ) == 0 || strcmp((), 一般員工) == 0 ) ()。 if(strcmp((), 黨員) == 0) ()。 if(strcmp((), 女) == 0 ) ()。 if(strcmp((), 博士) == 0 || strcmp((), 研究生) == 0 || strcmp((), 碩士) == 0 ) ()。 } (file)。 cout 根據(jù)現(xiàn)有信息,統(tǒng)計(jì)如下: endl。 cout \n系統(tǒng)錄入的人員總數(shù): () endl。 cout \n在職人員: () 黨員: () 女職工: () 高學(xué)歷: () endl。} 各類(lèi)之間的關(guān)系Class Informaion{ Private: //私有成員變量 Public: //共有成員變量 //重載流插入操作符 friend istream amp。operator (istream amp。strm, Informaion amp。obj) //沖在流體去操作符friend ostream amp。operator (ostream amp。strm, Informaion amp。obj) }Class tatolMaion : public Informaion {Private: //私有成員變量Public: //共有成員變量}int Informaion::tatolperson = 0。 //初始化靜態(tài)成員兩個(gè)類(lèi)是繼承的關(guān)系,并且是公有繼承,在共有繼承的前提下,父類(lèi)的私有成員自類(lèi)不可訪(fǎng)問(wèn),共有成員成為子類(lèi)的個(gè)保護(hù)成員。子類(lèi)繼承了父類(lèi)的靜態(tài)成員,靜態(tài)成員中存有文件中的錄入信息個(gè)數(shù),函數(shù):void Informaion::getTatolperson(fstream amp。 file);//獲取靜態(tài)數(shù)值函數(shù)獲取靜態(tài)函數(shù)成員,并調(diào)用Informaion類(lèi)中的int gettatolperson() { //函數(shù)體},最后由void recondMaion(fstream amp。 file) 給出該值的大小,并給與輸出完成文件整體的系統(tǒng)功能統(tǒng)計(jì)。 源程序代碼include iostreamusing namespace std。include fstreaminclude iomanipinclude cstdlibclass Informaion{private: int Numbers。 //人員編號(hào) 11765+ 000 char personProperties[10]。 //人員屬性 ___選擇 char name[11]。 //姓名 char gader[3]。 //性別 int age。 //年齡 char position[10]。 //職務(wù) char title[10]。 //職稱(chēng) char political[10]。 //政治面貌 char hightDegee[10]。 //z最高學(xué)歷 int serveingTime。 //任職時(shí)間 int countTime。 //來(lái)院時(shí)間 public: static int tatolperson。 int getNumbers() { return Numbers。 } int getAge() { return age。 } char *getName() { return name。 } char *getGader() { return gader。 } char *getPolitical() { return political。 } int gettatolperson() { return tatolperson。 } //返回靜態(tài)成員 char *getHightdegee() { return hightDegee。 } char *getPersonProperties() { return personProperties。 } void setNumbers( int number ) { Numbers = number。 } void getTatolperson(fstream amp。 file)。 //從文件中獲取人員總數(shù) Informaion() { Numbers = 11765000。 personProperties[10] = NULL。 //人員屬性 ___選擇 name[11] = NULL。 //姓名 gader[3] = NULL。 //性別 age = 0。 //年齡 重要的數(shù)據(jù)用于刪除操作、提取Numbers的值 position[10] = NULL。 //職務(wù) title[10] = NULL。 //職稱(chēng) political[10] = NULL。 //政治面貌 hightDegee[10] = NULL。 //z最高學(xué)歷 serveingTime = NULL。 //任職時(shí)間 countTime = NULL。 //來(lái)院時(shí)間 }。 //重載流插入操作符 friend istream amp。operator (istream amp。strm, Informaion amp。obj) { cout \n現(xiàn)在請(qǐng)輸入以下信息: endl endl。 cout 請(qǐng)選擇人員目前工作情況:。 (, 10)。 cout 輸入用戶(hù)姓名: 。 (, 11)。 cout 輸入性別: 。 (, 3)。 cout 輸入年齡: 。 strm 。 ()。 cout 輸入職務(wù):。 (, 10)。 cout 輸入職稱(chēng):。 (, 10)。 cout 輸入政治面貌:。 (, 10)。 cout 輸入學(xué)歷:。 (, 10)。 cout 輸入任職時(shí)間:。 strm 。 ()。 cout 輸入來(lái)院時(shí)間:。 strm 。 ()。 return strm。 } friend ostream amp。operator (ostream amp。strm, Informaion amp。obj) { (ios::fixed | ios::left)。 strm 人員編號(hào): setw(10) 姓 名: setw(10) 性 別: setw(10) 年 齡: endl。 strm 職 務(wù): setw(10) 職 稱(chēng): setw(10) 政治面貌: setw(10) 學(xué) 歷: endl。 strm 任職時(shí)間: setw(10) 來(lái)院時(shí)間: setw(10) 備 注: setw(10) endl。 return strm。 }}。class tatolMaion : public Informaion //功能統(tǒng)計(jì)類(lèi) 繼承類(lèi){private: int onjobPerson。 //在職員工統(tǒng)計(jì) int polictical。 //黨員 int womenWork。 // 女工人數(shù) int hightDegee。 //統(tǒng)計(jì)高學(xué)歷人數(shù) public: void setOnjobPerson() { onjobPerson++。 } void setPolictical() { polictical++。 } void setWomenWork() { womenWork++。 } void setHightDegee() { hightDegee++。 } int getOnjobPerson() { return onjobPerson。 } int getPolictical() { return poli
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1