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

正文內(nèi)容

c語(yǔ)言課程設(shè)計(jì)報(bào)告電話薄-閱讀頁(yè)

2025-06-13 22:00本頁(yè)面
  

【正文】 * * * * * * * * * * * * * * * * * * * * * * *\n)。 void sea_name(void)。 do{ printf(* * * * * * * * * * * * * *MENU * * * * * * * * * * * * * * * * * * * * * *\n)。 printf( 9用姓名查找.\n)。 printf(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n)。 scanf(%d,amp。 switch(b) {case 8:sea_num()。 case 9:sea_name()。 case 10:break。break。 printf(exit.\n)。 int i,flag,n。 if((fp=fopen(,rb))==NULL) {printf(Can not open the file.\n)。 } for(i=0。stu[i],LEN,1,fp)!=0。 n=i。in。stu[i],LEN,1,fp)。 printf(\nInput num:)。 for(flag=0,i=0。i++) {if(strcmp(num,stu[i].num)==0) {printf(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n)。 printf(No.\tname\tphone\n)。 flag=1。 if(flag!=1)printf(Not found the record\n)。 int i,j,flag,n。 if((fp=fopen(,rb))==NULL) {printf(Can not open the file.\n)。 } for(i=0。stu[i],LEN,1,fp)!=0。 n=i。in。stu[i],LEN,1,fp)。 printf(\nInput name:)。 for(flag=0,i=0。i++) {if(strcmp(name,stu[i].name)==0) {printf(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n)。 printf(No.\tname\tphone\n)。 flag=1。 if(flag!=1)printf(Not found the record\n)。 int i,j,n。 if((fp=fopen(,rb))==NULL) {printf(Can not open the file.\n)。 } for(i=0。stu[i],LEN,1,fp)!=0。 n=i。in。stu[i],LEN,1,fp)。 for(i=0。i++) for(j=i+1。j++) if(strcmp(stu[i].num,stu[j].num)0) {temp=stu[i]。 stu[j]=temp。 printf(No.\tname\tphone\n)。in。 fp=fopen(,wb)。in。stu[i],LEN,1,fp)。 fclose(fp)。 FILE*fp。 printf(NO.:)。 printf(name:)。 printf(phone:)。 if((fp=fopen(,rb))==NULL) {printf(\nCan not open the file.\n)。 } for(i=0。stu[i],LEN,1,fp)!=0。 n=i。in。stu[i],sizeof(struct student),1,fp)。 strcpy(stu[n].name,)。 strcpy(stu[n].phone,)。 printf(\nNow the new list is:\n)。 printf(No.\tname\tphone\n)。 fp=fopen(,wb)。in。stu[i],sizeof(struct student),1,fp)。 } fclose(fp)。 int i,j,n,flag。 if((fp=fopen(,rb))==NULL) {printf(\nCan not open the file.\n)。 } for(i=0。stu[i],LEN,1,fp)!=0。 n=i。 scanf(%s,name)。in。jn1。 strcpy(stu[j].num,stu[j+1].num)。 } flag=0。 } } printf(\nNow the list is:\n?)。 for(i=0。i++) fwrite(amp。 fclose(fp)。 printf(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n)。 for(i=0。stu[i],LEN,1,fp)!=0。 printf(* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n)。 fclose(fp)。 if((in=fopen(,rb))==NULL) {printf(Can not open the infile.\n)。 } if((out=fopen(,wb))==NULL) {printf(Can not open the outfile.\n)。 } while(!feof(in))fputc(fgetc(in),out)。 fclose(in)。 }六、總結(jié)(課程設(shè)計(jì)完成了哪些功能,還有哪些地方需要改進(jìn),及通過(guò)一周的課程設(shè)計(jì)有何收獲,調(diào)試程序的體會(huì)等)(1)功能1. 通訊錄的每一條信息包括學(xué)號(hào)、姓名、電話(字符數(shù)組)。3. 顯示功能:完成全部通訊錄信息的顯示。5. 增加功能:可以無(wú)限增加學(xué)生數(shù)量。7. 。.(2) 需要改進(jìn): 不知道如何改變DOS界面的顏色,使界面更加完美;字體顏色也不知道如何改變;電話號(hào)碼的位數(shù)受到限制(如手機(jī)號(hào)碼輸入時(shí)會(huì)出錯(cuò))。六、參考文獻(xiàn) [1] 譚浩強(qiáng)著. C程序設(shè)計(jì)(第三版). 北京:清華大學(xué)出版社,2005[2] 譚浩強(qiáng)著. C程序設(shè)計(jì)題解與上機(jī)指導(dǎo). 北京:清華大學(xué)出版社,
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1