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

正文內(nèi)容

c公司人員管理系統(tǒng)(編輯修改稿)

2025-09-03 13:54 本頁面
 

【文章內(nèi)容簡介】 coutNo\tName\t技術員\tt\tEarningendl。    }   }。    class Sales:public Person //銷售員類  {   private:   double Amount。   public:   Sales(char ID,char *Name,int Duty,double Amount):Person(ID,Name,Duty)  {  thisAmount=Amount。  }   double GetAmount()    {    return Amount。    }   void SetAmount(double Amount)    {    thisAmount=Amount?! ? }    void CalcSalary()   {    Earning=SalesPercent/100*Amount?!? }   void Output()    {   CalcSalary()?! ? coutNo\tName\t銷售員\tAmount\tEarningendl。    }   }?!    lass Company //公司類 {   private:   Person *Worker。 //員工表  void Clear()。 //清除內(nèi)存中數(shù)據(jù)   public:  Company()    {  Worker=0。    Load()?!? }   ~Company()  {   Person *p?!? p=Worker?! ? while(p)   {  p=pnext?!  ? delete Worker?!  ? Worker=p。  }    Worker=0?! ? }  void Add()。 //增加人員    void Delete()。 //刪除人員  void Modify()。 //修改人員  void Query()。 //查詢?nèi)藛T   void Set()。 //基礎數(shù)據(jù)設置   void Save()。 //數(shù)據(jù)存盤(包括基礎數(shù)據(jù),人員數(shù)據(jù))  void Load()。 //數(shù)據(jù)裝入(包括基礎數(shù)據(jù),人員數(shù)據(jù))   }?!?  void Company::Clear() //清除內(nèi)存中人員數(shù)據(jù)(內(nèi)部使用)  {   Person* p=Worker?!? while(p)   {  Worker=pnext。  delete p?!  ? p=Worker?!  ? } }   void Company::Add()  {   Person *p。 //新結點指針    int Duty。    char Name[20]?! ? double Amount,T。     cout\n** 新增員工 **\n。      //輸入員工信息   ID++。  cout輸入崗位(1經(jīng)理2銷售經(jīng)理3銷售員4技術員):。 cinDuty。  cout輸入姓名:。 cinName?!? if(Duty==3)  {  cout本月銷售額:。 cinAmount?!? }  else if(Duty==4)   {    cout本月工作小時數(shù)(0168):。     cinT。   }    //創(chuàng)建新員工結點   switch(Duty)  {    case 1:p=new Manager(ID,Name,Duty)。 break?!? case 2:p=new SalesManager(ID,Name,Duty)。 break?!  ? case 3:p=new Sales(ID,Name,Duty,Amount)。 break?!  ? case 4:p=new Technician(ID,Name,Duty,T)。 break?!  ? }    pnext=0?!   ? //員工結點加入鏈表  if(Worker) //若已經(jīng)存在結點  {    Person *p2?! ? p2=Worker?!? while(p2next) //查找尾結點   {   p2=p2next?!? }  p2next=p。 //連接  }   else //若不存在結點(表空)  {   Worker=p。 //連接    }   }    void Company::Delete() //刪除人員   {   int No?!? cout\n** 刪除員工 **\n。   coutID:。 cinNo?! ? //查找要刪除的結點  Person *p1,*p2。 p1=Worker?! ? while(p1)  {   if(p1No==No)   break?!  ? else  {  p2=p1?! ? p1=p1next?! ? }  }   //刪除結點   if(p1!=NULL)//若找到結點,則刪除  {    if(p1==Worker) //若要刪除的結點是第一個結點  {  Worker=p1next。    delete p1。    }   else //若要刪除的結點是后續(xù)結點  {    p2next=p1next?!? delete p1?!  ? }    co
點擊復制文檔內(nèi)容
規(guī)章制度相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1