標頭檔案#include
#include
#include
#include
#include
class staff
char *get_id(char *s)//獲取id函式;
char *get_name( char *s)//獲取姓名函式;
int get_rank( int r)//獲取級別函式;
~staff()
};class manager:public staff//經理;
void set_info(); //資料設定函式;
float get_salary(float salary)
void print_salary()
inout }~manager() };class techincan:public staff//兼職技術人員; void set_info();// float get_worktime(float wt) float get_hourlysalary(float hs=0) float calc_salary(float wt,float hs) void print_salary(float s)//注意!!!!原**有傳遞值; inout }~techincan() };class sale**an:public staff void set_info();//資料設定函式; float get_sales(float sal)//獲取銷售額函式; float get_royaltyrate(float rr)//獲取銷售提成率函式; float calc_salary(float s,float rr) void print_salary(float s) void inputsale**an(int rank=2)//寫入銷售人員函式; void inputsales_manager(int rank=3)//寫入銷售經理資訊函式; void choice()//主選單; choice();break; case 1:int js2; while(js2!=0) choice();break; case 2:int js3; while(js3!=0) choice();break; case 3:int js4; while(js4!=0) choice();breakvoid choice2()//2級選單; break; case 0:choice(); breakvoid cxsy() if(i==5) return 1; else return 0; }void cxgr()//查詢個人資訊; {ifstream chaxun chaxun.open("d:\\staff.dat"); if(!chaxun) {cout<<"can not open the file!!!"<>pos; if(pos>max) {cout<<"error!!!"<迎使用公司管理系統 "<<"*"< cout<<"\t\t\t"<<"*"<<"\t\t\t"<<"*"< cout<<"\t\t\t"<<< cout<<"\n\n"< choice 程式設計實習 報告 專業班級 學號 姓名 時間 2010.8.22 2010.8.27 2010年8月 目錄一 實習內容1 二 設計思路2 三 程式清單3 四 執行結果25 五 程式使用說明31 六 總結及心得體會31 一 實習內容 實習目的 本次實習所編輯的c 程式是為了建立 小型公司工資管理系統... include include include include using namespace std const a 2 const b 4 int a,b,c,d,s class employee 員工 基類 void set int get1 string get2 char get3 int... 指導教師 張銀霞 專業班級 自動化094班 設計者 王子斌劉先念丁瑞榮 設計時間 2010 10 c 程式設計 課程設計任務書 一 已知技術引數或設計前提 1 本校現擁有學生 研究生 教師 助教的人數。2 各類成員的姓名,編號,出身日期,性別,身份證號 id 以及個人相關資訊。3 通過輸入各個成員的...c小型公司工資管理系統
c小型公司工資管理系統實習報告
C人事管理系統