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

正文內(nèi)容

c課程設(shè)計公司人員信息管理系統(tǒng)-閱讀頁

2025-02-09 20:12本頁面
  

【正文】 temp=data[k]。 data[i]=temp。 for(i=0。i++) coutdata[i] 。 } void main() { int source[ ]={7,3,1,9,8}。a39。q39。f39。e39。d39。h39。 cout排列前順序為: 。 sort(source,5)。 display(source,5)。 第 23頁 display(c,6)。 cout排序后的序列為: 。 } 界面設(shè)計及實現(xiàn) : 文件 6. 分析程序功能與要求 :編寫一個程序,統(tǒng)計 文件的行數(shù),并將所有行前加上行號后寫到 文件中。因此,可以采用 getline()函數(shù)讀取每一行,再用一個變量 i計算行數(shù)。 各個類的實現(xiàn) : includeiostream 第 24 頁 includefstream using namespace std。int max=100。 (d:\\)。 exit(1)。 while((line,max)) { coutilineendl。 } cout總行數(shù)目 =i1endl。 } 界面設(shè)計及實現(xiàn) : 第 25 頁 小系統(tǒng)設(shè)計 公司人員信息管理系統(tǒng) — .分析程序功能與要求: 本系統(tǒng)主要對公司人員的基本信息進行錄入和維護和工資管理模塊的處理。對于系統(tǒng)管理員,可對人員信息進行刪除操作。 三、各個類的實現(xiàn) include include include include const int Maxr=100。 int no。 char zw[20]。 public: Employee(){} char *getname() {return name。} int getno() {return no。} void setzw(char q[]) { strcpy(zw,q)。 } void getsalary(int sa){salary=sa。} void addemp(int n,int sa,char *na,char *q) { tag=0。 salary=sa。 strcpy(zw,q)。 cout├ ————— ┼ ————— ┼ ————— ┼ ————— ┤ endl。 class Database { int top。 public: Database() { Employee s。 fstream file(,ios::in)。s,sizeof(s))。 top++。 } ()。 } int addemp (int n, int sa,char *na,char*q) { Employee *p=query(n)。 read[top].addemp(n,sa,na,q)。 } return 0。i=top。amp。read[i]。 } Employee *query1(char empna[20]) { for (int i=0。i++) if ((read[i].getname()==empna)amp。read[i].gettag()==0) return amp。 return NULL。i=top。 } void empdata()。 for (int i=0。i++) if (read[i].gettag()==0) ((char*)amp。 ()。 void Database::empdata() { int choice=1。int b=1。 int empid。char q[20]。 while (choice!=0) { cout職工 維護 1:新增 2:更改 3:刪除 4:查找 5:顯示 6:全刪 0:退出 。 switch (choice) { 第 30頁 case 1: coutsetw(50) ┌ ————————————— ┐ \n。 coutsetw(50) │ 經(jīng)理: 1,回車鍵并按 │ \n。 coutsetw(50) │ 普通職工: 3,并按回車鍵 │ \n。 cinm。 cinempid。 cinempsa。 cinrname。 break。 cinempid。 cinempsa。 cinrname。 break。 cinempid。 cinempsa。 cinrname。 break。 } break。 cinempid。 if (r==NULL) { cout該職工不存在 endl。 } cout輸入新的工資: endl。 rgetsalary(empsa)。 cinq。 addemp(empid,empsa,rname,q)。 case 3: cout輸入職工編號: 。 r=query(empid)。 break。 break。 coutsetw(50) │ 請選擇您所需的操作 │ \n。 coutsetw(50) │ 返回 2,并按回車鍵 │ \n。 cinb。 cinempid。 if (r==NULL) { cout該職工不存在 endl。 } cout├ ————— ┼ ————— ┼ ————— ┼ ————— ┤ endl。 cout├ ————— ┼ ————— ┼ ————— ┼ ————— ┤ endl。 break。 } break。 case 5: cout├ ————— ┼ ————— ┼ ————— ┼ ————— ┤ endl。 cout├ ————— ┼ ————— ┼ ————— ┼ ————— ┤ endl。 break。 break。Database EmpDB。 coutendl。 coutsetw(50) │ 請選擇您所需的操作 │ \n。 coutsetw(50) │ 操作 1,并按回車鍵 │ \n。 coutsetw(50) │ 返回 0,并按回車鍵 │ \n。 cinchoice。 ()。 break。 請選擇您所需的操作 , 操作 1,并按回車鍵 , 操作 0,并按回車鍵 。 int m=1。 第 39頁 char rname[20]。 int empsa。 Employee *r。 cinchoice。 coutsetw(50) │ 請選擇您所需的操作 │ \n。 coutsetw(50) │ 業(yè)務(wù)經(jīng)理: 2,并按回車鍵 │ \n。 coutsetw(50) └ ┘ \n。 while(m!=0){ switch(m) { case 1: cout輸入經(jīng)理編號: 。 cout輸入獎金 : 。 cout輸入經(jīng)理姓名: 。 addemp(empid,8000+empsa,rname,經(jīng)理 )。 三、總結(jié) 經(jīng)過了兩天半的程序設(shè)計,我感到非常累,但是在設(shè)計 的過程中卻收獲到了很多,也回顧了上學(xué)期的所學(xué)知識。 在編寫小系統(tǒng)時,我覺得這是我學(xué)習(xí) C++以來遇到的最困難的程序了,因為它牽扯到很多知識,而我以前的知識學(xué)的也不是很牢固,不過經(jīng)過多次修改與參考,還是編寫了出來,不管怎么說,這次程序設(shè)計還是鍛煉了我編寫程序的能力 ,對以前所學(xué)的知識有了進一步的了解。本次課程設(shè)計最 大的收獲是,學(xué)會了如何自己學(xué)
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1