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

正文內(nèi)容

新學籍管理系統(tǒng)c++做的(文件)

2025-02-13 15:13 上一頁面

下一頁面
 

【正文】 p=n。 *r=p。 while(n) { t=p。 p=s。n,a,amp。 return 。 while(ramp。 else printf(%ld %s %.2lf\n,r,r,r)。 } printf( 請輸入要查詢的學生信息的學生姓名 :\n)。strcmp(r,m)) r=rnext。 struct stucode *p=*r,*t。 scanf(%ld,amp。amp。 pnext=pnextnext。 double s。n,a,amp。 p=s。 return 。 while(tnextamp。 tnext=p。 return 。 tnext=NULL。 } else { z=t。 pnext=znext。 } void out(struct stucode *r) { printf(\n\n)。 r=rnext。 printf(\n 1建立鏈表并顯示 \n)。 printf(\n 5插入新的學生信息 \n)。 printf(\n 請選擇您要執(zhí)行的選項 :\n)。 int sum,avarage。 float sx。 struct score *next。 int sum。 }。 //學號查詢 void change(student *head)。//統(tǒng)計總成績和平均成績數(shù)據(jù) void display()。 char x。 cout ★ 設計: 06信科 2班 方冰 ▕ 版權(quán)所有 違者必究 ★ \n 。039。839。 } }while(flag2==0)。 input(head)。 break。 change(head)。339。 break。 cout*****************現(xiàn)在進行學生信息的查詢 ******************\n。 while(z!=39。z!=39。 cinz。break。break。539。 break。 readin(head)。739。 display()。: cout ╔═══════════════════════════╗\n。 exit(0)。 cout ║ ☆ 學籍管理系統(tǒng) ☆ ║endl。 cout ║ (2)學生數(shù)據(jù)的修改 ║endl。 cout ║ (2)按姓名查詢 ║endl。 cout ║ (7)刪除 指定的學生信息 ║endl。 cout ║注:請輸入相應括號里的阿拉伯數(shù)字來執(zhí)行相關(guān)操作! ║endl。 cout ║===================謝謝您的使用=======================║endl。 cout | 學號 | 姓名 | 語文 | 數(shù)學 | 英語 |總成績 |平均成績 |endl。 cout | setw(4)(*stu).。 cout | endl。 student *stu=headnext。 if(! outfile) { cout!!!!!!!!打開文件錯誤 !!!!!!!\n。n39。 amount++。 ()。 file[j]=new ofstream(D:\\學 籍管理系統(tǒng) \\學生成績 .txt,ios::app)。 cout請輸入姓名: setw(10)。 //cout(*stu).endl。 cout請輸入英語成績 :setw(2)。 //cout(*stu).endl。 pnext=stu。 p=pnext。amp。 cout數(shù)據(jù)錄入成功,想繼續(xù)錄入嗎 (y/n)。)。 string name。 cinname。 cout | 學號 | 姓名 | 語文 | 數(shù)學 | 英語 |總成績 |平均成績 |endl。 cout | setw(4)(*stu).。 cout | endl。 cout您想繼續(xù)查詢嗎 ?(y/n)。amp。) { cout!!!!!!!!!!!!!!指令錯誤 請輸入 y/n!!!!!!!!!!!!endl。c!=39。 while(c!=39。 }while(stu!=NULL)。 cout | setw(4)(*stu).。 cout | setw(4)(*stu).name。amp。 bool flag=0。 cout輸入了 amount個學生的信息 .endl。 } }while(c==39。n39。y39。 cout數(shù)據(jù)錄入成功,想繼續(xù)錄入嗎 (y/n)。 //cout(*stu).endl。 //cout(*stu).endl。 cin(*stu).。 cout請輸入語文成績 :setw(2)。 cout請輸入學號 (限 4位數(shù)內(nèi) ):setw(4)。 int j=0。 } break。 outfile| 學號 | 姓名 | 語文 | 數(shù)學 | 英語 |總成績 |平均成績 |endl。 exit(0)。 cina。 } system(pause)。 cout | setw(4)(*stu).。 cout | setw(4)(*stu).name。 cout → 請選擇相應的數(shù)字進行操作 : endl。 cout ║ (D:\\學籍管理系統(tǒng) \\學生成績 .txt) ║endl。 cout ║ ║endl。 cout ║ (5)查詢學生總成績和平均成績 ║endl。 cout ║ (4)查詢學生信息 ║endl。 cout ║ ║endl。 } }while(flag2==1)。 cout ╚═══════════════════════════╝\n。 //刪除 case 39。 shanchu(head)。 break。639。 tongji(head)。 break。239。139。) { cout!!!!!!!!!指令錯誤 請選擇 (1)或者 (2)!!!!!!!!!!!!endl。amp。 cout(1).姓名查詢; (2).學號查詢 :。439。 show(head)。 break。239。 show(head)。139。 else { cout!!!!!!!!!!!!!!!!!指令錯誤 !!!!!!!!!!!!!!!!endl。amp。 //顯示操作界面 do { do { cinx。 student *head=new student。 //顯示數(shù)據(jù) void readin(student *head)。 //刪除 void get(student *head)。 //錄入 void search1(student *head)。 score sc1。 ////////////////////////////////學生數(shù)據(jù)類 class student { public: string mun。 int sum。 //記錄學生個數(shù) ofstream *file[50]。分我就笑納了哈 printf(\n 7輸出 \n)。 printf(\n 3查找某姓名的學生信息 \n)。 } void menu() { printf(\n 學生信息管理系統(tǒng) \n)。 return 。 } p=q。amp。 if(pt) { pnext=t。 t=*r。 } } void sort(struct stucode **r) { struct stucode *t,*p,*q,*z。tnext=p) t=tnext。 else { t=*r。 if(!(*r)) { *r=p。 p=(L *)malloc(sizeof(L))。 printf( 請輸入要插入的學生信息的學生學號 姓名 分數(shù) :\n)。 } } } void insert(struct stucode **r) { long n。 if(pnext==NULL) printf(Error! No such student !\n)。 if(p==k) *r=(*r)next,free(p)。 return 。 else printf(%ld %s %.2lf\n,r,r,r)。 while(ramp。 if(!r) { printf(沒有學生信息可查詢 !\n)。r!=x) r=rnext。 scanf(%ld,amp。 } } void search1(struct stucode *r) { long x。 tnext=p。 p=n。n,a,amp。 p=s。 if(n==0) return。 printf( \n請輸入: \n 學號(請按學號升序排列) 姓名 分數(shù) (若要結(jié)束請輸入三個為零) \n)。 long n。 default: printf(\nWrong Selection!(選擇錯誤 ,請重選 !)\n)。039。 getchar()。 case 39。 printf(Testing function 1\nPress any key to continue\n)。639。 getchar()。: insert(amp。 getchar()。r)。 break。: search2(r)。 getchar()。239。 getchar()。: createlist(amp。 menu()。 void main() { char choose。 void search2(struct stucode *r)。 void menu()。 }。 程序要求: ( 1)能夠完成 300人以內(nèi)任何人數(shù)的成績處理。 B:成績查詢: B1:輸入一 個學號時,查詢出此生的所有課程情況,格式如下: 學 號: xx 姓 名: xxxxx 課程編號: xxx 課程名稱: xxxxx 綜合成績: xxxx 實得學分 : xx 課程編號: xxx 課程名稱: xxxxx 綜合成績: xxxx 實得學分 : xx 課程編
點擊復制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1