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

正文內(nèi)容

c語言程序設(shè)計-基于鏈表的學(xué)生成績管理系統(tǒng)(參考版)

2025-06-29 11:56本頁面
  

【正文】 free(head)。 break。 default: printf(\n 選擇錯誤,請按任意鍵選擇!\n )。 case 5: printf(\n 系統(tǒng)退出,拜拜!\n )。 case 4: read(head)。 case 3: save(head)。 case 2: print(head)。 switch(xz) { case 1: create(head)。 scanf(%d,amp。 head=init()。 }void main(){ int xz=0。 printf( ****************************************\n)。 printf( * 4讀取文件 *\n)。 printf( * 2數(shù)據(jù)顯示 *\n)。 printf( ****************************************\n)。 printf( ****************************************\n)。 printf( ****************************************\n)。 } else printf(\n 當前鏈表為空,請先讀取文件或創(chuàng)建鏈表!\n 按任意鍵繼續(xù)!\n )。 printf( 鏈表顯示完畢,請按任意鍵繼續(xù)!\n)。 p=pnext。 printf(%6d,pwl)。 printf(%8d,pgs)。 while(p!=NULL) { printf(%4d ,pxh)。 printf( 學(xué)號 姓名 高數(shù) 英語 物理 平均分\n)。 if(p!=NULL) { printf(\n 數(shù)據(jù)顯示\n)。 } void print(struct xs *hd) { struct xs*p。 printf(\n 讀取文件完畢,請按任意鍵繼續(xù)!\n )。 hdnext=p。 fscanf(fp,%3d %12s %3d %3d %3d\n,pxh,pxm,pgs,pyy,pwl)。inum。num)。 fp=fopen(,r)。 FILE *fp。 } } void read(struct xs *hd) { int i。 } else { printf(\n 當前鏈表為空,不需要保存,請按任意鍵繼續(xù)!\n )。 printf(\n 保存文件完畢,請按任意鍵繼續(xù)!\n )。 p=pnext。inum。 fprintf(fp,%3d\n,num)。 FILE *fp。} void save(struct xs *hd) { if(hdnext!=NULL) { struct xs *p=hdnext。 } printf( 錄入數(shù)據(jù)完畢,請按任意鍵繼續(xù)!\n )。 pnext=hdnext。 pyy=yy。 strcpy(pxm,xm)。 p=(struct xs *)malloc(sizeof(struct xs))。 scanf(%d,amp。yy)。 printf( 英語:)。 scanf(%d,amp。 scanf(%s,xm)。xh)。 printf( 學(xué)號:)。inum。num)。 printf(\n 請輸入學(xué)生個數(shù):)。 struct xs *p。 }}void create(struct xs *hd){ int xh,gs,yy,wl,i。 hdnext=pnext。 p=hdnext。 return hd。 hd=(struct xs *)malloc(sizeof(struct xs))。int num=0。 struct xs *next。 char xm[20]。}試驗收獲通過這次試驗,我掌握了鏈表的創(chuàng)建、遍歷顯示和清除功能,掌握了鏈表數(shù)據(jù)的文件保存、讀取,能夠熟練的使用VC++,對C程序有了更深的了解。 } } fr(head)。 getch()。 break。 break。 break。 break。 break。xz)。 while(xz!=5) {
點擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1