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

正文內(nèi)容

c課程設(shè)計(jì)--藥品信息管理系統(tǒng)(編輯修改稿)

2025-02-25 20:12 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 。 gets()。 printf(\n\t\tenter price:)。 gets(numstr)。 =atof(numstr)。 /*把字符型轉(zhuǎn)換成 float 型 */ printf(\n\t\tenter godsnum:)。 gets(numstr)。 =atoi(numstr)。 /*把字符型轉(zhuǎn)換成整型 */ fwrite(amp。infom,sizeof(infom),1,fp)。 printf(\n\t\tinput continue(y/n)?)。 ch=getchar()。getchar()。 }while(ch==39。Y39。||ch==39。y39。)。 fclose(fp)。 } void display() /*顯示信息函數(shù) */ { FILE *fp。 char ch。 int x。 float f。 if((fp=fopen(c:\\,rb))==NULL) { printf(\nCannt open file!\n)。 getch()。 exit(1)。 } while(fread(amp。infom,sizeof(struct stud),1,fp)==1) { printf(\n\tnum:%ld,)。 printf(\n\tname:%s,)。 7 printf(\n\t\price:%.3f,)。 printf(\n\t\godsnum:%d,)。 } fclose(fp)。 } void search() /*查詢信息函數(shù) */ { FILE *fp。 int x。 long y。 char ch。 if((fp=fopen(c:\\,rb))==NULL) { printf(\nCannot open file!\n)。 getch()。 exit(1)。 } do { printf(\nplease input recond num:)。 scanf(%d,amp。x)。 y=(x1)*sizeof(infom)。 rewind(fp)。 /*把指針移回文件開(kāi)始 */ if(fseek(fp,y,0)!=0)/*把指針指向 Y*/ { printf(can not move there!\n)。 exit(1)。 } fread(amp。infom,sizeof(infom),1,fp)。 printf(num:%ld\n,)。 printf(name:%s\n,)。 printf(price:%f\n,)。 printf(godsnum:%d,)。 ch=getchar()。getchar()。 }while(ch==39。Y39。||ch==39。y39。)。 8 fclose(fp)。 } Class KF /*定義一個(gè) 藥品 庫(kù)房類 */ void amend() /*修改信息函數(shù) */ { FILE *fp1 ,*fp2。 int flag。 long ch。 char f。 char temp[10]。 do { if((fp1=fopen(c:\\ ,rb)) ==NULL) { printf(\tCan not open the inform file!)。 getch()。 exit(1)。 } if((fp2=fopen(c:\\,wb)) == NULL) { printf(\tCan not open the temp file!)。 getch()。 exit(1)。 } printf(please input the num you want to amend:)。 getchar()。 scanf(%ld,amp。ch)。 flag=0。 while(fread(amp。infom,sizeof(infom),1,fp1)==1) { if(ch==) { printf(\n\nPlease input the new information:\n)。 printf(\tnum:)。getchar()。gets(temp)。 =atol(temp)。 9 printf(\tname:)。 gets()。 printf(\tprice:)。 gets(temp)。 =atof(temp) printf(\tgodsnum:)。 gets(temp)。 =atoi(temp)。 getchar()。 flag=1。 } fwrite(amp。infom,sizeof(infom),1,fp2)。 } fclose(fp1)。 fclose(fp2)。 if(flag == 1) { printf(amend success!\n)。 remove(c:\\)。 rename(c:\\,c:\\)。 } else printf(Can not find this record!\n)。 printf(amend any more ?(Y/N): [ ]\b\b)。 f=getchar()。 getchar()。 }while (f==39。Y39。||f==39。y39。)。 } void delete_slf() /*刪除信息函數(shù) */
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1