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

正文內(nèi)容

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

2025-05-04 22:33 本頁面
 

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