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

正文內(nèi)容

c面向?qū)ο蟪绦蛟O(shè)計課程設(shè)計報告(編輯修改稿)

2025-06-09 22:06 本頁面
 

【文章內(nèi)容簡介】 void Query()。 //查詢?nèi)藛T   void Set()。 //基礎(chǔ)數(shù)據(jù)設(shè)置 void Save()。 //數(shù)據(jù)存盤(包括基礎(chǔ)數(shù)據(jù),人員數(shù)據(jù)) void Load()。 //數(shù)據(jù)裝入(包括基礎(chǔ)數(shù)據(jù),人員數(shù)據(jù))   }。//extern double ManagerSalary。class Manager:public Person //經(jīng)理類 {public: Manager(char ID,char *Name,int Duty):Person(ID,Name,Duty){} void CalcSalary(){Earning=ManagerSalary。} void Output() { CalcSalary()。 coutNo\tName\t經(jīng)理\tEarningendl。 }}。//includeclass Person //員工類  {protected: int No。 //編號   char Name[20]。 //姓名   int Duty。 //崗位  double Earning。 //收入    Person *next。public: Person(char ID,char *Name,int Duty) { thisDuty=Duty。 strcpy(thisName,Name)。 thisNo=ID。 } virtual void CalcSalary()=0。 virtual void Output()=0。 friend class Company。}。//extern double SalesPercent。 //銷售人員提成%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。 }}。//extern double SalesManagerSalary。 //銷售經(jīng)理固定月薪 extern double SalesManagerPercent。 //銷售經(jīng)理提成%class SalesManager:public Person //銷售經(jīng)理類 {private: double Amount。public: SalesManager(char ID,char *Name,int Duty):Person(ID,Name,Duty){} void SetAmount(double s) { Amount=s。 } void CalcSalary() { Earning=SalesManagerSalary+Amount*SalesManagerPercent/100。 } void Output() { CalcSalary()。 coutNo\tName\t銷售經(jīng)理\tEarningendl。 }}。//extern double WagePerHour。class Technician:public Person //技術(shù)員類{private: double t。public: Technician(char ID,char *Name,int Duty,double T):Person(ID,Name,Duty) { thist=T。 } double GetT() { return t。 } void SetT(double T) { thist=T。 } void CalcSalary() { Earning=WagePerHour*t。 } void Output() { CalcSalary()。 coutNo\tName\t技術(shù)員\tt\tEarningendl。 }}。//includeincludeincludeincludeincludeincludeincludeincludeincludeextern int ID。extern double ManagerSalary。 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。 //新結(jié)點指針 int Duty。 char Name[20]。 double Amount,T。 cout\n** 新增員工 **\n。 //輸入員工信息 ID++。 cout輸入崗位(1經(jīng)理2銷售經(jīng)理3銷售員4技術(shù)員):。 cinDuty。 cout輸入姓名:。 cinName。 if(Duty==3) { cout本月銷售額:。 cinAmount。 } else if(Duty==4) { cout本月工作小時數(shù)(0168):。 cinT。 }//創(chuàng)建新員工結(jié)點   switch(Duty) { case 1:p=new Manager(ID,Name,Duty)。 break。 case 2:p=new SalesManager(ID,Name,
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1