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

正文內(nèi)容

公司員工信息管理系統(tǒng)c課程設(shè)計(jì)-在線瀏覽

2024-11-16 14:46本頁面
  

【正文】 umPay()。 class technician:public employee //兼職技術(shù)人員類 { private: float hourlyRate。 //當(dāng)月工作時(shí)數(shù) public: technician()。 //設(shè)置工作時(shí)數(shù)函數(shù) void pay()。 //升級函數(shù) }。 //按銷售額提取酬金的百分比 float sales。 ~salesman(){}//構(gòu)造函數(shù) void Setsales(float sl)。 //計(jì)算月薪函數(shù) void promote(int)。 class manager:virtual public employee //經(jīng)理類 { protected: float monthlyPay。 //構(gòu)造函數(shù) void pay()。 //升級函數(shù) C++課程設(shè)計(jì) 公司員工信息管理系統(tǒng) 18 ~manager(){} }。 //構(gòu)造函數(shù) void pay()。//升級函數(shù) ~salesmanager(){} }。 int employee::employeeNo=1000。 //新輸入的員工編號為目前最大編號加 1 grade=1。} //月薪總額初值為 0 employee::~employee() {} void employee::promote(int increment) { grade+=increment。 } //設(shè)置姓名 char* employee::GetName() { return name。} //提取成員編號 C++課程設(shè)計(jì) 公司員工信息管理系統(tǒng) 19 int employee::Getgrade() { return grade。} //提取月薪 technician::technician() { hourlyRate=100。} //設(shè)置工作時(shí)間 void technician::pay() { accumPay=hourlyRate*workHours。 } //調(diào)用基類升級函數(shù),升 2 級 salesman::salesman() { CommRate=。} //設(shè)置銷售額 void salesman::pay() { accumPay=sales*CommRate。 } //調(diào)用基類升級函數(shù),升 0 級 manager::manager() { monthlyPay=80000。} //月薪總額即固定月薪數(shù) void manager::promote(int ) { employee::promote(3)。 CommRate=。 } //月薪 =固定月薪 +銷售提成 void salesmanager::promote(int) { employee::promote(2)。 } char* employee::Getsex() { return sex。 } void employee::Sethobit(char* hobita) { strcpy(hobit,hobita)。 } void employee::Setjob( char* joba) { strcpy(job,joba)。 int count=0。 (amp。 // (amp。 (amp。 (amp。 (amp。 int i。i4。 if( ()==IDOK) { vchar[i]SetName((char*) (LPCTSTR) )。 vchar[i]Setsex((char*) (LPCTSTR) )。 ofstream infile(,ios::out|ios::app) 。 ()。 if(count++==3) { MessageBox(內(nèi)存不足! ,提示對話窗口 )。 } if(MessageBox(信息存儲完畢,是否繼續(xù)添加 人員信息? ,提示對話框 ,100)==IDYES) continue。 break。 return。 CDlgQuerySalary work。 if(!=1) { switch() { case 0: if(MessageBox(你的職業(yè)是總經(jīng)理嗎? ,提示窗口 ,100)==IDYES) { MessageBox(總經(jīng)理固定月薪是 80000,提示窗口 )。 case 1: if(MessageBox(你的職業(yè)是銷售經(jīng)理嗎? ,提示窗口 ,100)==IDYES) { thisOnInitialUpdate()。 //創(chuàng)建一個(gè)輸入文件流對象 try { if (!infile) throw FileException()。 // () 39。 exit(0)。 //聲明查詢對話框?qū)ο? if(()==IDOK)//調(diào)用查詢對話框 { C++課程設(shè)計(jì) 公司員工信息管理系統(tǒng) 23 char line[10][101]。 for(int i=0。i++) { (line[i],100)。 (%s,line[i])。,39。//提取姓名 if(!())//與查詢名比較 { flag=TRUE。 if(MessageBox(name_str,提示對話框 ,100)==IDYES) { CDlginfomation pDlg。 = c_str。//調(diào)用顯示對話框 } } } if(flag==FALSE) MessageBox(查無此人! )。 } break。 ifstream infile(,ios::in)。 } catch ( FileException fe ) { // exception handler AfxMessageBox(())。\n39。 } C++課程設(shè)計(jì) 公司員工信息管理系統(tǒng) 24 CDlgQueryName ed。 BOOL flag=FALSE。i4。 //從文件讀入人員信息 CString c_str,name_str。 //轉(zhuǎn)換為字符串 name_str=((39。))。 name_str+=被查詢到,要顯示該人員信息嗎? 。//聲明顯示對話框?qū)ο? = 。 ()。 break。 } ()。 case 3: if(MessageBox(你的職業(yè)是銷售員嗎? ,提示窗口 ,100)==IDYES) { thisOnInitialUpdate()。 //創(chuàng)建一個(gè)輸入文件流對象 try { if (!infile) throw FileException()。 // () 39。 exit(0)。 //聲明查詢對話框?qū)ο? if(()==IDOK)//調(diào)用查詢對話框 { char line[10][101]。 for(int i=0。i++) { (line[i],100)。 (%s,line[i])。,39。//提取姓名 if(!())//與查詢名比較 { flag=TRUE。 if(MessageBox(name_str,提示對話框 ,100)==IDYES) { CDlginfomation pDlg。 = c_str。//調(diào)用顯示對話框 }。 } } if(flag==FALSE) MessageBox(查無此人! )。 } break。 } } C++課程設(shè)計(jì) 公司員工信息管理系統(tǒng) 26 4,員工信息輸入函數(shù)的代碼顯示: void CMy1007010103View::OnManagerinput() { // TODO: Add your mand handler code here manager m1。 ()。 ((char*)(LPCTSTR) )。 ((char*)(LPCTSTR) )。 infile(), 你的職業(yè): (), 性別: (), 愛好:() endl。 MessageBox(信息存儲完畢! ,存儲信息對話框 )。 } } 5,信息輸出函數(shù)代碼顯示: void CMy1007010103View::OnManageroutput() { // TODO: Add your mand handler code here ifstream infile(,ios::in)。 } catch ( FileException fe ) { // exception handler MessageBox(())。\n39。 C++課程設(shè)計(jì) 公司員工信息管理系統(tǒng) 27 } CClientDC dc(this)。 for(int i=0。i++) { (line,100)。 (%s,line)。 (120,100+30*i,c_str)。 } ,6,信息刪除函數(shù)代碼: void CMy1007010103View::OnDeleteinfomation() { // TODO: Add your mand handler code here thisOnInitialUpdate()。 //創(chuàng)建一個(gè)輸入文件流對象 try { if (!infile) throw FileException()。 // () 39。 exit(0)。 //聲明查詢對話框?qū)ο? if(()==IDOK)//調(diào)用查詢對話框 { char line[4][101]。 int flag=0。 for(int i=0。i++) { (line[i],100)。 C++課程設(shè)計(jì) 公司員工信息管理系統(tǒng) 28 (%s,line[i])。,39。//提取姓名 if(!())//與查詢名比 { flag=1。 } } ()。 return。 for(int j=0。j++) { if(j!=a[1]amp。j!=a[2]amp。j!=a[3]amp。j!=a[0]) { ofileline[j]endl。 MessageBox(此人 信息已刪除! )。 } 八、 : // 葉俊耀 1007010103 課程設(shè)計(jì) : implementation of the CMy1007010103View class // include include 葉俊耀 1007010103 課程設(shè)計(jì) .h include 葉俊耀 1007010103 課程設(shè)計(jì) include 葉俊耀 1007010103 課程設(shè)計(jì) include include include include include C++課程設(shè)計(jì) 公司員工信息管理系統(tǒng) 29 include include include include fstream include vector include using namespac
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1