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

正文內(nèi)容

數(shù)據(jù)結(jié)構(gòu)之學(xué)生成績(jī)管理系統(tǒng)設(shè)計(jì)-資料下載頁(yè)

2025-04-07 23:10本頁(yè)面
  

【正文】 *)malloc(sizeof(Student))。 point=headnext。 while(pointnext!=NULL) point=pointnext。 //找到尾結(jié)點(diǎn) char decide=39。y39。 //定義while變量,函數(shù)是否繼續(xù)進(jìn)行 int num。 //定義switch變量,函數(shù)跳轉(zhuǎn)到哪個(gè)子函數(shù) while(decide!=39。n39。) { printf( ***************************************************\n)。 printf( **** 1 頭插 2 尾插 3 退出 ****\n)。 printf( ***************************************************\n)。 scanf(%d,amp。num)。 Student *p=(Student *)malloc(sizeof(Student))。 switch(num) { case 1: StuImport(head,p)。 pnext=headnext。 headnext=p。 printf(插入成功\n)。 break。 case 2: StuImport(head,p)。 pointnext=p。 pnext=NULL。 printf(插入成功\n)。 break。 default: decide=39。n39。 break。 } } }void StuDelect(Student *head) //學(xué)生成績(jī)管理系統(tǒng)的刪除函數(shù),由主函數(shù)調(diào)用{ int num。 printf(輸入想要?jiǎng)h除學(xué)生的學(xué)生號(hào):\n)。 scanf(%d,amp。num)。 char Sub[10]。 printf(輸入想要?jiǎng)h除科目:\n)。 scanf(%s,Sub)。 Student *p=(Student *)malloc(sizeof(Student))。 pnext=headnext。 int i=1。 while(pnext!=NULL) { if(num==pnextnumamp。amp。!strcmp(Sub,pnextsubject)) { StuOutput(pnext)。 printf(是否刪除:1/0\n)。 scanf(%d,amp。i)。 if(num==headnextnumamp。amp。!strcmp(Sub,headnextsubject)) { headnext=headnextnext。 } else { pnext=pnextnext。 } i=2。 printf(刪除成功\n)。 break。 } p=pnext。 } if(i==1) printf(沒(méi)有該學(xué)生信息\n)。}void StuSave(Student *head) //學(xué)生成績(jī)管理系統(tǒng)的存儲(chǔ)函數(shù),由主函數(shù)調(diào)用{ FILE *fp。 char filename[10]。 printf(請(qǐng)輸入存儲(chǔ)文件名(包括物理地址)\n)。 scanf(%s,filename)。 Student *p=(Student *)malloc(sizeof(Student))。 p=headnext。 if((fp=fopen(filename,w))==NULL) { printf(cannot open file)。 return。 } printf(input data:/n)。 while(p!=NULL) { fwrite(p,sizeof(Student),1,fp)。 /* 成塊寫入文件*/ p=pnext。 } fclose(fp)。} 技術(shù)資料分享
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1