




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、精品商品訂購系統(tǒng)c語言程序設(shè)計(jì)#include stdio.h /*I/O函數(shù)*/#include stdlib.h /*其它說明*/#include string.h /*字符串函數(shù)*/#include conio.h /*屏幕操作函數(shù)*/#include mem.h /*內(nèi)存操作函數(shù)*/#include ctype.h /*字符操作函數(shù)*/#include alloc.h /*動(dòng)態(tài)地址分配函數(shù)*/struct scoreint mingci;char xuehao8;char mingzi20;float score6;data,info1000;int i,j,k=0;char temp
2、20,ch;FILE *fp,*fp1;void shuru()if(fp=fopen(s_score.txt,ab+)=NULL)printf(cannot open this file.n);getch();exit(0);for(i=0;i=1000;i+)printf(nPlease shuru xuehao:);gets(data.xuehao);printf(Please shuru mingzi:);gets(data.mingzi);printf(Please shuru yuwen score:);gets(temp);data.score0=atof(temp);print
3、f(Please shuru shuxue score:);gets(temp);data.score1=atof(temp);printf(Please input yingyu score:);gets(temp);data.score2=atof(temp);printf(Please shuru wuli score:);gets(temp);data.score3=atof(temp);printf(Please shur huaxue score:);gets(temp);data.score4=atof(temp);data.score5=data.score0+data.sco
4、re1+data.score2+data.score3+data.score4;fwrite(&data,sizeof(data),1,fp);printf(another?y/n);ch=getch();if(ch=n|ch=N)break; fclose(fp);void xianshi()float s;int n;if(fp=fopen(s_score.txt,rb+)=NULL)printf(Cannot reading this file.n);exit(0);for(i=0;i=1000;i+)if(fread(&infoi,sizeof(infoi),1,fp)!=1)brea
5、k;printf(nxuehao mingzi yuwen shuxue yingyu wuli huauxue zhongfenn);for(j=0,k=1;jshuru 2xiugai * n);printf(* 3shanchu 4chazhao * n);printf(* 5xianshi 6exit * n);printf(* * n);printf(* - * n);printf( Please input which you want(1-6):);ch=getch();switch(ch)case 1:shuru();break;case 2:xiugai(); break;case 3:shanchu(); break;c
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 高效溝通協(xié)作機(jī)制建立方案
- 鄉(xiāng)村環(huán)境綜合整治技術(shù)作業(yè)指導(dǎo)書
- 電力行業(yè)供電安全告知書
- 房屋買賣按揭合同
- 商業(yè)場(chǎng)所租賃使用協(xié)議及設(shè)備設(shè)施管理細(xì)則協(xié)議
- 智能辦公系統(tǒng)集成方案簽署協(xié)議
- 高考語文復(fù)習(xí)-文言文重點(diǎn)字詞解析練習(xí)
- 高考英語整句翻譯漢譯英專題訓(xùn)練500題(含答案)
- 新品手機(jī)使用說明手冊(cè)
- 企業(yè)研發(fā)創(chuàng)新基金合作協(xié)議
- 廣東義務(wù)教育標(biāo)準(zhǔn)化學(xué)校
- 煤質(zhì)化驗(yàn)員測(cè)試題(附參考答案)
- 全電發(fā)票樣式
- (完整版)供應(yīng)商審核表
- 饅頭工藝流程圖
- (二次供水單位)生活飲用水衛(wèi)生許可證延續(xù)申請(qǐng)表
- 鈉電池正極材料PPT
- 體能訓(xùn)練概論(NSCA)
- 青島版三年級(jí)數(shù)學(xué)下冊(cè)《美麗的街景》教學(xué)課件7
- 液壓傳動(dòng)全套ppt課件(完整版)
- 內(nèi)部控制五要素圖解
評(píng)論
0/150
提交評(píng)論