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

正文內(nèi)容

學(xué)生考勤管理系統(tǒng)課程設(shè)計報告-文庫吧資料

2024-08-16 11:36本頁面
  

【正文】 幾節(jié)課: flush。//flush表示刷新緩沖區(qū) cint1。 cout錄入一條學(xué)生缺課記錄:endl。 int t2,t5,flag=0。 } else return true。day32)) { cout日期錄入有誤! 請重新錄入: endl。day0amp。month13amp。month0amp。year99amp。year0amp。 if(!(()==6amp。 int month=atoi((2,2).c_str())。 rr[rn++].set(t1,t2,t3,t4,t5)。 (tmp,3)。)。 (tmp,30,39。)。 (tmp,30,39。)。 (tmp,3,39。)break。 if(tmp[0]==39。39。 rn=0。 char tmp[30]。 return。}void rd(records *r)//實現(xiàn)對文件的輸入{ ifstream inf()。i++) outfrr[i].tostr()endl。 for(int i=0。endif records_class第三部分: (功能子函數(shù)的實現(xiàn)部分)include include stringinclude iostreaminclude fstreaminclude include iomanipusing namespace std。 int n。i++) couts[i]\tc[i]endl。 for(i=0。 s[j1]=stmp。 string stmp=s[j]。 c[j]=c[j1]。j0。ik。 c[k++]=1。 break。j++) if(r[i].ame==s[j]) { c[j]++。 for(j=0。in。 int k=1,flag。 s[0].assign(r[0].ame)。 string *s=new string[n]。i++) couts[i]\t\tc[i]endl。 for(i=0。 s[j1]=stmp。 string stmp=s[j]。 c[j]=c[j1]。j0。ik。 c[k++]=1。 break。j++) if(r[i].sname==s[j]) { c[j]++。 for( j=0。in。 int k=1,flag。 s[0].assign(r[0].sname)。 string *s=new string[n]。 } void order_s() //姓名的排序 { int i。endif record_classifndef records_classdefine records_classclass records//實現(xiàn)學(xué)生曠課情況排序的類{public: records() //構(gòu)造函數(shù) { r=new record[100]。 int type。 string sname。 } string date。 (tmp)。 itoa(type,tmp,10)。 ()。//直接添加另一個完整的字符串 ()。 ()。 (date)。 } string tostr() { string s。 thiso=。//assign可以避免不必要的內(nèi)存分配,可以提高效率 ()。 } void set(record amp。 thiso=o。 (c)。}第二部分: (類的設(shè)計部分)include iostreaminclude stringusing namespace std。 else goto c3。n39。)goto c1。 if(yn==39。 char yn。 default:goto c2。 case 6:search_s(r)。 case 5:del(r)。 case 4:edt(r)。 case 3:search(r)。 case 2:input(r)。 switch(chose) { case 1:pri(r)。 records *r=new records()。 c2: cinchose。 } coutO(∩_∩)O 請選擇你所需要的操作 O(∩_∩)O: flush。 cout *** 7. 退出系統(tǒng) ***endl。 cout *** ***endl。 cout *** ***endl。 cout *** 系統(tǒng)主菜單: ***endl。 cout *** ★歡迎訪問學(xué)生考勤管理系統(tǒng)★ ***endl。include int main(){ c1: //主菜單實現(xiàn) system(cls)。 } 用到的知識點有:函數(shù)的作用域、函數(shù)的調(diào)用、數(shù)組賦值、函數(shù)循環(huán)、以及類的定義,另外還用到了for函數(shù)、getch函數(shù)、switch函數(shù)、case函數(shù)、default函數(shù)等等。 case 6:goto e1。 case 4:goto e4。 case 2:goto e2。e0: cinflag。 t5=rr[i].type。 t3=rr[i].ame。 } t1=rr[i].date。 } if(!flag) { cout查無此學(xué)生!endl。i++) if(rr[i].sname==t1) { flag=7。 for(i=0。 cintmp。 char tmp[30]。曠課記錄的修改: cout請輸入要修改缺課記錄的學(xué)生姓名: flush。五、類設(shè)計系統(tǒng)中主要涉及了兩個類: 一個是class record //關(guān)于學(xué)生考勤基本信息類 另一個是class records//實現(xiàn)學(xué)生曠課情況排序的類六、主要算法設(shè)計
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1