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

正文內(nèi)容

股票交易系統(tǒng)代碼大全-資料下載頁

2025-07-23 02:11本頁面
  

【正文】 (str,y)!=0)amp。amp。(strcmp(str,Y)!=0)amp。amp。(strcmp(str,n)!=0)amp。amp。(strcmp(str,N)!=0))。 if((strcmp(str,y)==0)||(strcmp(str,Y)==0)) { writedata()。 cout謝謝使用!endl。 delete head。 //刪除臨時(shí)指向股票鏈表類的全局指針和動(dòng)態(tài)開辟的空間 delete table。 //刪除臨時(shí)指向用戶資料結(jié)構(gòu)體的指針和動(dòng)態(tài)開辟的空間 exit(0)。 } else return。 } } }void Interface() //初始界面 { char str[30]。int nChoice。int flag=1。 while(1) { system(cls)。 cout歡迎使用股票交易系統(tǒng)!endl。 coutendl。 cout...........[1]endl。 cout...............[2]endl。 cout...........[3]endl。 cout...............[4]endl。 coutendl。 if(flag==1) cout請(qǐng)輸入您的選項(xiàng)([]中的數(shù)字):endl。 else if(flag==0) cout輸入錯(cuò)誤,請(qǐng)重新輸入一次:endl。 (str,30)。nChoice=atoi(str)。 if((nChoice!=1)amp。amp。(nChoice!=2)amp。amp。(nChoice!=3)amp。amp。(nChoice!=4)) { flag=0。 system(cls)。 } else { flag=1。mainchoice(nChoice)。 } //初始界面選項(xiàng)判斷 } }void Managementface() //股票管理界面{ char str[30]。 int nChoice。 int flag=1。 while(1) { system(cls)。 cout歡迎進(jìn)入股票管理菜單!endl。 coutendl。 cout...........[1]endl。 cout...[2]endl。 cout...........[3]endl。 cout.............[4]endl。 coutendl。 if(flag==1) cout請(qǐng)輸入您的選項(xiàng)([]中的數(shù)字):endl。 else if(flag==0) cout輸入錯(cuò)誤,請(qǐng)重新輸入一次:endl。 (str,30)。nChoice=atoi(str)。 if((nChoice!=1)amp。amp。(nChoice!=2)amp。amp。(nChoice!=3)amp。amp。(nChoice!=4)amp。amp。(nChoice!=5)amp。amp。(nChoice!=6)) { flag=0。 system(cls)。 } else { flag=1。 managementchoice(nChoice)。 //股票管理選項(xiàng)判斷 if(nChoice==4) return。 } } }int Login() //登錄{ char str1[10]。 cout請(qǐng)輸入用戶名:endl。 (str1,20)。 ifstream infile1(,ios::binary|ios::nocreate)。 if(infile1) { while(!()) { ((char*)table,sizeof(Custtable))。 if(strcmp(tableName,str1)!=0) //與注冊(cè)了已存在的用戶名進(jìn)行比較 { cout用戶名輸入錯(cuò)誤!endl。 ()。 system(pause)。 return 0。} } } else { cout請(qǐng)先注冊(cè)!endl。 ()。system(pause)。 return 0。 } }void Register() //用戶注冊(cè){ Custtable temp。 cout歡迎注冊(cè)!endl。 cout請(qǐng)?zhí)钕孪旅娴馁Y料endl。start: cout請(qǐng)輸入用戶名:endl。 (tableName,20)。 ifstream infile1(,ios::binary|ios::nocreate)。 if(infile1) { while(!()) ((char*)amp。temp,sizeof(Custtable))。 } coutendl請(qǐng)輸入資金:endl。 cintableMoney。()。 ofstream outfile(,ios::binary|ios::app)。 ((char*)table,sizeof(Custtable))。 ()。 (strcat(tableName,.dat),ios::binary)。 ()。}void main(){ ofstream outfile(,ios::noreplace)。 //若文件不存在則作為新文件打開它,若文件已存在則操作失敗 ()。 head=new Stocklist。 //給臨時(shí)指向股票鏈表類的全局指針開辟新空間 table=new Custtable。 //給臨時(shí)指向用戶資料結(jié)構(gòu)體的指針開辟新空間 readdata()。 //從二進(jìn)制文件中讀取數(shù)據(jù)到臨時(shí)鏈表 while(1) { Interface()。 } //初始界面 }12 / 12
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1