C語言實(shí)現(xiàn)火車訂票系統(tǒng)
本文實(shí)例為大家分享了C語言實(shí)現(xiàn)火車訂票系統(tǒng)的具體代碼,供大家參考,具體內(nèi)容如下
程序介紹
1.運(yùn)行程序時(shí),首先進(jìn)入到菜單部分,菜單部分提供了菜單顯示和輸入功能部分。其運(yùn)行效果如圖所示。在主界面上輸入數(shù)字0——6,實(shí)現(xiàn)相應(yīng)的功能。
2.主界面輸入“1”,進(jìn)入添加火車信息界面,如圖所示。根據(jù)屏幕上給出的提示輸入火車的車次,起點(diǎn),終點(diǎn),出發(fā)時(shí)間,到達(dá)時(shí)間,票價(jià)和可以訂購的票數(shù)。
3.主界面輸入“2”,可以查詢火車信息,可以選擇查詢的方法有兩種,一種是按照車次查詢,一種是按照你想要到達(dá)的地方查詢,運(yùn)行效果如圖所示。
4.當(dāng)在主界面輸入“3”時(shí),進(jìn)入訂票界面,按照提示輸入你想要到達(dá)的城市,會(huì)自動(dòng)顯示出你終點(diǎn)站為你輸入城市的信息,根據(jù)提示輸入你是否決定訂票以及你的個(gè)人信息,運(yùn)行效果如圖所示。
5.當(dāng)在主界面輸入“4”時(shí),進(jìn)入修改界面,根據(jù)提示輸入你要修改的內(nèi)容,修改模塊的運(yùn)行效果如圖所示。
6.當(dāng)在主界面輸入“5”時(shí),可以顯示出所有的火車信息,顯示模塊效果如圖所示。
7.當(dāng)在主界面輸入“6”時(shí),進(jìn)入到保存模塊,將錄入的火車信息進(jìn)行保存,并且將訂票人的信息也進(jìn)行保存,存儲(chǔ)在指定的磁盤文件中。運(yùn)行效果如圖所示。
代碼
#include <conio.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <dos.h> #define HEADER1 " -------------------------------BOOK TICKET----------------------------------\n" #define HEADER2 " | ?number ?|start city|reach city|takeofftime|receivetime|price|ticketnumber|\n" #define HEADER3 " |----------|----------|----------|-----------|-----------|-----|------------|\n" #define FORMAT ?" |%-10s|%-10s|%-10s|%-10s |%-10s |%5d| ?%5d ? ? |\n" #define DATA p->data.num,p->data.startcity,p->data.reachcity,p->data.takeofftime,p->data.receivetime,p->data.price,p->data.ticketnum int saveflag=0 ; /*定義存儲(chǔ)火車信息的結(jié)構(gòu)體*/ struct train? { ? ? char num[10];/*列車號(hào)*/ ? ? char startcity[10];/*出發(fā)城市*/ ? ? char reachcity[10];/*目的城市*/ ? ? char takeofftime[10];/*發(fā)車時(shí)間*/ ? ? char receivetime[10];/*到達(dá)時(shí)間*/ ? ? int ?price;/*票價(jià)*/ ? ? int ?ticketnum ;/*票數(shù)*/ }; /*訂票人的信息*/ struct man? { ? ? char num[10];/*ID*/ ? ? char name[10];/*姓名*/ ? ? int ?bookNum ;/*訂的票數(shù)*/ }; /*定義火車信息鏈表的結(jié)點(diǎn)結(jié)構(gòu)*/ typedef struct node? { ? ? struct train data ; ? ? struct node * next ; }Node,*Link ; /*定義訂票人鏈表的結(jié)點(diǎn)結(jié)構(gòu)*/ typedef struct Man? { ? ? struct man data ; ? ? struct Man *next ; }book,*bookLink ; /* 初始界面*/ void menu() { ? ? puts("\n\n"); ? ? puts("\t\t|------------------------------------------------------|"); ? ? puts("\t\t| ? ? ? ? ? ? ? ? ? Booking Tickets ? ? ? ? ? ? ? ? ? ?|"); ? ? puts("\t\t|------------------------------------------------------|"); ? ? puts("\t\t| ? ? ? 0:quit the system ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|"); ? ? puts("\t\t| ? ? ? 1:Insert a train information ? ? ? ? ? ? ? ? ? |"); ? ? puts("\t\t| ? ? ? 2:Search a train information ? ? ? ? ? ? ? ? ? |"); ? ? puts("\t\t| ? ? ? 3:Book a train ticket ? ? ? ? ? ? ? ? ? ? ? ? ?|"); ? ? puts("\t\t| ? ? ? 4:Modify the train information ? ? ? ? ? ? ? ? |"); ? ? puts("\t\t| ? ? ? 5:Show the train information ? ? ? ? ? ? ? ? ? |"); ? ? puts("\t\t| ? ? ? 6:save information to file ? ? ? ? ? ? ? ? ? ? |"); ? ? puts("\t\t|------------------------------------------------------|"); } /*添加一個(gè)火車信息*/ void Traininfo(Link linkhead) { ? ? struct node *p,*r,*s ; ? ? char num[10]; ? ? r = linkhead ; ? ? s = linkhead->next ; ? ? while(r->next!=NULL) ? ? r=r->next ; ? ? while(1) ? ? { ? ? ? ? printf("please input the number of the train(0-return)"); ? ? ? ? scanf("%s",num); ? ? ? ? if(strcmp(num,"0")==0) ? ? ? ? ? break ; ? ? ? ? /*判斷是否已經(jīng)存在*/ ? ? ? ? while(s) ? ? ? ? { ? ? ? ? ? ? if(strcmp(s->data.num,num)==0) ? ? ? ? ? ? { ? ? ? ? ? ? ? ? printf("the train '%s'is existing!\n",num); ? ? ? ? ? ? ? ? return ; ? ? ? ? ? ? } ? ? ? ? ? ? s = s->next ; ? ? ? ? } ? ? ? ? p = (struct node*)malloc(sizeof(struct node)); ? ? ? ? strcpy(p->data.num,num);/*輸入車號(hào)*/ ?? ? printf("Input the city where the train will start:"); ? ? ? ? scanf("%s",p->data.startcity);/*輸入出發(fā)城市*/ ? ? ? ? printf("Input the city where the train will reach:"); ? ? ? ? scanf("%s",p->data.reachcity);/*輸入到站城市*/ ? ? ? ? printf("Input the time which the train take off:"); ?? ?scanf("%s",p->data.takeofftime);/*輸入出發(fā)時(shí)間*/ ? ? ? ? printf("Input the time which the train receive:"); ?? ?scanf("%s",&p->data.receivetime);/*輸入到站時(shí)間*/ ? ? ? ? printf("Input the price of ticket:"); ? ? ? ? scanf("%d",&p->data.price);/*輸入火車票價(jià)*/ ? ? ? ? printf("Input the number of booked tickets:"); ?? ?scanf("%d",&p->data.ticketnum);/*輸入預(yù)定票數(shù)*/ ? ? ? ? p->next=NULL ; ? ? ? ? r->next=p ;/*插入到鏈表中*/ ? ? ? ? r=p ; ? ? ? ?saveflag = 1 ; ? ? } } /*打印火車票信息*/ void printheader() /*格式化輸出表頭*/ { printf(HEADER1); printf(HEADER2); printf(HEADER3); } void printdata(Node *q) /*格式化輸出表中數(shù)據(jù)*/ { Node* p; p=q; printf(FORMAT,DATA); } /*查詢火車信息*/ void searchtrain(Link l) { ? ? Node *s[10],*r; ? ? int sel,k,i=0 ; ? ? char str1[5],str2[10]; ? ? if(!l->next) ? ? { ? ? ? ? printf("There is not any record !"); ? ? ? ? return ; ? ? } ? ? printf("Choose the way:\n1:according to the number of train;\n2:according to the city:\n"); ? ? scanf("%d",&sel);/*輸入選擇的序號(hào)*/ ? ? if(sel==1) ? ? { ? ? ? ? printf("Input the the number of train:"); ? ? ? ? scanf("%s",str1); ? ? ? ? r=l->next; ?? ?while(r!=NULL) ? ? ? ? if(strcmp(r->data.num,str1)==0)/*檢索是否有與輸入的車號(hào)相匹配的*/ ? ? ? ? { ? ? ? ? ? ? s[i]=r; ?? ? ? ?i++; ?? ? ? ?break; ? ? ? ? } ? ? ? ? else? ? ? ? ? ? ? r=r->next; ? ? } ? ? else if(sel==2) ? ? { ? ? ? ? printf("Input the city ?you want to go:"); ? ? ? ? scanf("%s",str2); ? ? ? ? r=l->next; ?? ?while(r!=NULL) ? ? ? ? if(strcmp(r->data.reachcity,str2)==0)/*檢索是否有與輸入的城市相匹配的火車*/ ? ? ? ? { ? ? ? ? ? ? s[i]=r; ?? ? ? ?i++; ?? ? ? ?r=r->next; ? ? ? ? } ? ? ? ? else? ? ? ? ? ? ? r=r->next; ? ? } ? ? ?? ?if(i==0) ?? ??? ?printf("can not find!"); ?? ?else ?? ?{ ?? ??? ?printheader(); ? ? for(k=0;k<i;k++) printdata(s[k]); ?? ?} } /*訂票子模塊*/ void Bookticket(Link l,bookLink k) { ? ? Node *r[10],*p ; ? ? char ch[2],tnum[10],str[10],str1[10],str2[10]; ? ? book *q,*h ; ? ? int i=0,t=0,flag=0,dnum; ? ? q=k ; ? ? while(q->next!=NULL) ? ? q=q->next ; ? ? printf("Input the city you want to go: "); ? ? scanf("%s",&str);/*輸入要到達(dá)的城市*/ ? ? p=l->next ; ? ? while(p!=NULL) ? ? { ? ? ? ? if(strcmp(p->data.reachcity,str)==0) ? ? ? ? { ? ? ? ? ? ? r[i]=p ;/*將滿足條件的記錄存到數(shù)組r中*/ ? ? ? ? ? ? i++; ? ? ? ? } ? ? ? ? p=p->next ; ? ? } ? ? printf("\n\nthe number of record have %d\n",i); ? ? ? ?printheader(); ? ? for(t=0;t<i;t++) ?? ? ? ?printdata(r[t]); ? ? if(i==0) ? ? printf("\nSorry!Can't find the train for you!\n"); ? ? else ? ? { ? ? ? ? printf("\ndo you want to book it?<y/n>\n"); ? ? ? ? scanf("%s",ch); ?? ?if(strcmp(ch,"Y")==0||strcmp(ch,"y")==0)/*判斷是否訂票*/ ? ? ? ? { ?? ? ? ?h=(book*)malloc(sizeof(book)); ? ? ? ? ? ? printf("Input your name: "); ? ? ? ? ? ? scanf("%s",&str1); ? ? ? ? ? ? strcpy(h->data.name,str1); ? ? ? ? ? ? printf("Input your id: "); ? ? ? ? ? ? scanf("%s",&str2); ? ? ? ? ? ? strcpy(h->data.num,str2); ?? ? ? ?printf("please input the number of the train:"); ?? ? ? ?scanf("%s",tnum); ?? ? ? ?for(t=0;t<i;t++) ?? ? ? ?if(strcmp(r[t]->data.num,tnum)==0) ?? ? ? ?{ ?? ? ? ? ? if(r[t]->data.ticketnum<1)/*判斷剩余的供訂票的票數(shù)是否為0*/ ?? ? ? ? ? { ?? ??? ? ? ? ? printf("sorry,no ticket!"); ?? ??? ? ? ? ? sleep(2); ?? ??? ? ? ? ? return; ?? ? ? ? ? } ?? ? ? ? ?printf("remain %d tickets\n",r[t]->data.ticketnum); ? ? ? ? ? ? ? ?flag=1; ?? ? ? ? ? break; ?? ? ? ?} ?? ? ? ?if(flag==0) ?? ? ? ?{ ?? ??? ? ? ?printf("input error"); ?? ??? ? ? sleep(2); ? ? ? ? ? ? ? ? ? ? return; ?? ? ? ?} ?? ? ? ?printf("Input your bookNum: "); ? ? ? ? ? ? scanf("%d",&dnum); ? ? ? ? ? ? r[t]->data.ticketnum=r[t]->data.ticketnum-dnum;/*定票成功則可供訂的票數(shù)相應(yīng)減少*/ ?? ? ? ?h->data.bookNum=dnum ; ? ? ? ? ? ? h->next=NULL ; ?? ? ? ?q->next=h ; ?? ? ? ?q=h ; ? ? ? ? ? ? printf("\nLucky!you have booked a ticket!"); ? ? ? ? ? ? getch(); ? ? ? ? ? ? saveflag=1 ; ? ? ? ? } ? ? } } /*修改火車信息*/ void Modify(Link l) { ? ? Node *p ; ? ? char tnum[10],ch ; ? ? p=l->next; ? ? if(!p) ? ? { ? ? ? ? printf("\nthere isn't record for you to modify!\n"); ? ? ? ? return ; ? ? } ? ? else ? ? { ?? ? ? ?printf("\nDo you want to modify it?(y/n)\n"); ? ? ? ? ? ? getchar(); ? ? ? ? ? ? scanf("%c",&ch); ? ? ? ? ? ? if(ch=='y'||ch=='Y') ? ? ? ? ? ? { ? ? ? ? ? ? ? ? printf("\nInput the number of the train:"); ?? ??? ?scanf("%s",tnum); ?? ?while(p!=NULL) ?? ?if(strcmp(p->data.num,tnum)==0)/*查找與輸入的車號(hào)相匹配的記錄*/ ?? ? ? ?break; ? ? ? ? else ? ? ? ? ? ? p=p->next; ? ? ? ? ? ? ? ? if(p) ? ? ? ? ? ? ? ? { ? ? ? ? ? ? ? ? ? ? printf("Input new number of train:"); ? ? ? ? ? ? ? ? ? ? scanf("%s",&p->data.num); ?? ??? ? ? ?printf("Input new city the train will start:"); ? ? ? ? ? ? ? ? ? ? scanf("%s",&p->data.startcity); ? ? ? ? ? ? ? ? ? ? printf("Input new city the train will reach:"); ? ? ? ? ? ? ? ? ? ? scanf("%s",&p->data.reachcity); ? ? ? ? ? ? ? ? ? ? printf("Input new time the train take off"); ?? ??? ? ? ?scanf("%s",&p->data.takeofftime); ? ? ? ? ? ? ? ? ? ? printf("Input new time the train reach:"); ?? ??? ? ? ?scanf("%s",&p->data.receivetime); ? ? ? ? ? ? ? ? ? ? printf("Input new price of the ticket::"); ? ? ? ? ? ? ? ? ? ? scanf("%d",&p->data.price); ? ? ? ? ? ? ? ? ? ? printf("Input new number of people who have booked ticket:"); ? ? ? ? ? ? ? ? ? ? scanf("%d",&p->data.ticketnum); ? ? ? ? ? ? ? ? ? ? printf("\nmodifying record is sucessful!\n"); ? ? ? ? ? ? ? ? ? ? saveflag=1 ; ? ? ? ? ? ? ? ? } ? ? ? ? ? ? ? ? else ? ? ? ? ? ? ? ? printf("\tcan't find the record!"); ? ? ? ? ? ? } ? ? } } void showtrain(Link l)/*自定義函數(shù)顯示列車信息*/ { Node *p; p=l->next; printheader(); if(l->next==NULL) printf("no records!"); else ?while(p!=NULL) { ?? ?printdata(p); ?? ?p=p->next; } } /*保存火車信息*/ void SaveTrainInfo(Link l) { ? ? FILE*fp ; ? ? Node*p ; ? ? int count=0,flag=1 ; ? ? fp=fopen("f:\\train.txt","wb"); ? ? if(fp==NULL) ? ? { ? ? ? ? printf("the file can't be opened!"); ? ? ? ? return ; ? ? } ? ? p=l->next ; ? ? while(p) ? ? { ? ? ? ? if(fwrite(p,sizeof(Node),1,fp)==1) ? ? ? ? { ? ? ? ? ? ? p=p->next ; ? ? ? ? ? ? count++; ? ? ? ? } ? ? ? ? else ? ? ? ? { ? ? ? ? ? ? flag=0 ; ? ? ? ? ? ? break ; ? ? ? ? } ? ? } ? ? if(flag) ? ? { ? ? ? ? printf(" saved %d train records\n",count); ? ? ? ? saveflag=0 ; ? ? } ? ? fclose(fp); } /*保存訂票人的信息*/ void SaveBookInfo(bookLink k) { ? ? FILE*fp ; ? ? book *p ; ? ? int count=0,flag=1 ; ? ? fp=fopen("f:\\man.txt","wb"); ? ? if(fp==NULL) ? ? { ? ? ? ? printf("the file can't be opened!"); ? ? ? ? return ; ? ? } ? ? p=k->next ; ? ? while(p) ? ? { ?? ?if(fwrite(p,sizeof(book),1,fp)==1) ? ? ? ? { ? ? ? ? ? ? p=p->next ; ? ? ? ? ? ? count++; ? ? ? ? } ? ? ? ? else ? ? ? ? { ? ? ? ? ? ? flag=0 ; ? ? ? ? ? ? break ; ? ? ? ? } ? ? } ? ? if(flag) ? ? { ? ? ? ? printf(" saved %d booking records\n",count); ? ? ? ? saveflag=0 ; ? ? } ? ? fclose(fp); } main() { ? ? FILE*fp1,*fp2 ; ? ? Node *p,*r ; ? ? char ch1,ch2 ; ? ? Link l ; ? ? bookLink k ; ? ? book *t,*h ; ? ? int sel ; ? ? l=(Node*)malloc(sizeof(Node)); ? ? l->next=NULL ; ? ? r=l ; ? ? k=(book*)malloc(sizeof(book)); ? ? k->next=NULL ; ? ? h=k ; ? ? fp1=fopen("f:\\train.txt","ab+");/*打開存儲(chǔ)車票信息的文件*/ ? ? if((fp1==NULL)) ? ? { ? ? ? ? printf("can't open the file!"); ? ? ? ? return 0 ; ? ? } ? ? while(!feof(fp1)) ? ? { ? ? ? ? p=(Node*)malloc(sizeof(Node)); ? ? ? ? if(fread(p,sizeof(Node),1,fp1)==1)/*從指定磁盤文件讀取記錄*/ ? ? ? ? { ? ? ? ? ? ? p->next=NULL ; ? ? ? ? ? ? r->next=p ;/*構(gòu)造鏈表*/ ? ? ? ? ? ? r=p ; ? ? ? ? } ? ? } ? ? fclose(fp1); ? ? fp2=fopen("f:\\man.txt","ab+"); ? ? if((fp2==NULL)) ? ? { ? ? ? ? printf("can't open the file!"); ? ? ? ? return 0 ; ? ? } ? ?? ? ? while(!feof(fp2)) ? ? { ? ? ? ? t=(book*)malloc(sizeof(book)); ? ? ? ? if(fread(t,sizeof(book),1,fp2)==1) ? ? ? ? { ? ? ? ? ? ? t->next=NULL ; ? ? ? ? ? ? h->next=t ; ? ? ? ? ? ? h=t ; ? ? ? ? } ? ? } ? ? fclose(fp2); ? ? while(1) ? ? { ? ? ? ? system("CLS"); ? ? ? ? menu(); ? ? ? ? printf("\tplease choose (0~6): ?"); ? ? ? ? scanf("%d",&sel); ? ? ? ? system("CLS");? ? ? ? ? if(sel==0) ? ? ? ? { ?? ? ? ?if(saveflag==1)/*當(dāng)退出時(shí)判斷信息是否保存*/ ? ? ? ? ? ? { ? ? ? ? ? ? ? ? getchar(); ? ? ? ? ? ? ? ? printf("\nthe file have been changed!do you want to save it(y/n)?\n"); ? ? ? ? ? ? ? ? scanf("%c",&ch1); ? ? ? ? ? ? ? ? if(ch1=='y'||ch1=='Y') ? ? ? ? ? ? ? ? { ?? ??? ? ? ?SaveBookInfo(k); ? ? ? ? ? ? ? ? ? ? SaveTrainInfo(l); ? ? ? ? ? ? ? ? } ? ? ? ? ? ? } ? ? ? ? ? ? printf("\nThank you!!You are welcome too\n"); ? ? ? ? ? ? break ; ? ? ? ? } ? ? ? ? switch(sel)/*根據(jù)輸入的sel值不同選擇相應(yīng)操作*/ ? ? ? ? { ? ? ? ? ? ? case 1 : ? ? ? ? ? ? ? Traininfo(l);break ; ? ? ? ? ? ? case 2 : ? ? ? ? ? ? ? searchtrain(l);break ; ? ? ? ? ? ? case 3 : ? ? ? ? ? ? ? Bookticket(l,k);break ; ? ? ? ? ? ? case 4 : ? ? ? ? ? ? ? Modify(l);break ; ?? ? ? ?case 5: ?? ??? ? ? ?showtrain(l);break; ? ? ? ? ? ? case 6 : ?? ? ? ? ?SaveTrainInfo(l);SaveBookInfo(k);break ; ? ? ? ? ? ? case 0: ? ? ? ? ? ? return 0; ? ? ? ? } ? ? ? ? printf("\nplease press any key to continue......."); ? ? ? ? getch(); ? ? } }
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
相關(guān)文章
C語言中動(dòng)態(tài)內(nèi)存分配malloc、calloc和realloc函數(shù)解析
C語言跟內(nèi)存申請(qǐng)相關(guān)的函數(shù)主要有 alloca、calloc、malloc、free、realloc等,下面這篇文章主要給大家介紹了關(guān)于C語言中動(dòng)態(tài)內(nèi)存分配malloc、calloc和realloc函數(shù)的相關(guān)資料,需要的朋友可以參考下2022-03-03C++實(shí)現(xiàn)LeetCode(12.整數(shù)轉(zhuǎn)化成羅馬數(shù)字)
這篇文章主要介紹了C++實(shí)現(xiàn)LeetCode(12.整數(shù)轉(zhuǎn)化成羅馬數(shù)字),本篇文章通過簡(jiǎn)要的案例,講解了該項(xiàng)技術(shù)的了解與使用,以下就是詳細(xì)內(nèi)容,需要的朋友可以參考下2021-07-07C語言修煉之路悟徹?cái)?shù)組真妙理?巧用下標(biāo)破萬敵上篇
在C語言和C++等語言中,數(shù)組元素全為指針變量的數(shù)組稱為指針數(shù)組,指針數(shù)組中的元素都必須具有相同的存儲(chǔ)類型、指向相同數(shù)據(jù)類型的指針變量。指針數(shù)組比較適合用來指向若干個(gè)字符串,使字符串處理更加方便、靈活2022-02-02c語言實(shí)現(xiàn)足球比賽積分統(tǒng)計(jì)系統(tǒng)
這篇文章主要為大家詳細(xì)介紹了c語言實(shí)現(xiàn)足球比賽積分統(tǒng)計(jì)系統(tǒng),文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2022-05-05VS2022永久配置OpenCV開發(fā)環(huán)境的實(shí)現(xiàn)
本文主要介紹了VS2022永久配置OpenCV開發(fā)環(huán)境的實(shí)現(xiàn),文中通過示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2022-02-02C語言實(shí)現(xiàn)手寫Map(數(shù)組+鏈表+紅黑樹)的示例代碼
這篇文章主要為大家詳細(xì)介紹了如何利用C語言實(shí)現(xiàn)手寫Map(數(shù)組+鏈表+紅黑樹),文中的示例代碼講解詳細(xì),對(duì)我們學(xué)習(xí)有一定借鑒價(jià)值,需要的可以參考一下2022-09-09VSCode添加頭文件(C/C++)的實(shí)現(xiàn)示例
這篇文章主要介紹了VSCode添加頭文件(C/C++)的實(shí)現(xiàn)示例,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2020-08-08C++標(biāo)準(zhǔn)庫實(shí)現(xiàn)WAV文件讀寫的操作
本文將使用標(biāo)準(zhǔn)C++庫實(shí)現(xiàn)對(duì)數(shù)據(jù)為PCM格式的WAV文件的讀寫操作,只使用標(biāo)準(zhǔn)C++庫函數(shù),不依賴于其他的庫,對(duì)C++標(biāo)準(zhǔn)庫實(shí)現(xiàn)WAV文件讀寫相關(guān)知識(shí)感興趣的朋友一起看看吧2022-01-01