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

正文內(nèi)容

商店存貨管理系統(tǒng)課程設(shè)計(jì)(參考版)

2024-09-10 10:01本頁面
  

【正文】 1. Robert L. Kruse, Data Structures And Program Design in C++,高等教育出版社, . 2. 嚴(yán)蔚敏等編著,數(shù)據(jù)結(jié)構(gòu)( C語言版),清華大學(xué)出版社, ; 3. 趙文靜等編著,數(shù)據(jù)結(jié)構(gòu)與算法,科學(xué)出版社, ; 4. 孫鑫等編著, VC++深入詳解,電子工業(yè)出版社, 西安建筑科技大學(xué)課程設(shè)計(jì)(論文) 第 39 頁 共 38 頁 。從調(diào) 試發(fā)現(xiàn)的錯(cuò)誤來看,主要還是細(xì)節(jié)問題,比如在思考時(shí)漏考慮了一種情況,或?qū)ρh(huán)的終止條件判定出錯(cuò),再有就是 “==” 寫成 “=” 。前面狀態(tài)為假了 ,再輸入就不被執(zhí)行了 ,清空緩沖區(qū),并將錯(cuò)誤的 cin 流標(biāo)識(shí),通過這個(gè)可以把假狀態(tài)清除掉,加上 ()就可解決編譯器編譯 while 循環(huán)時(shí)因在緩沖區(qū)找不到合乎條件的數(shù)據(jù)而出現(xiàn)死循環(huán)的情況了。 ()。 ( 5)在 cinint/float時(shí),如果輸入一個(gè)字符,則會(huì)導(dǎo)致刷屏的結(jié)果 西安建筑科技大學(xué)課程設(shè)計(jì)(論文) 第 38 頁 共 38 頁 原因:這是因?yàn)榉菙?shù)字字符無法被 cin 接收而一直停留在緩沖區(qū),導(dǎo)致下一次 cin 時(shí)直接從緩存讀數(shù) 但字符無法讀取結(jié)果導(dǎo)致無限循環(huán) 這被很多人認(rèn)為成庫的 bug。 ( 4)出現(xiàn) “error LNK2020” 錯(cuò)誤。 ( 3)錯(cuò)誤看法:靜態(tài)成員變量是該類共有的,那么其派生類就一定要開 一段新的內(nèi)存來該存儲(chǔ)派生類從基類中繼承的靜態(tài)成員變量。 ( 2)出現(xiàn) “error LNK2019 無法解析的外部符號(hào) ” 錯(cuò)誤。 問題及解決方法 ( 1) “ruturn 返回值; ” 語句會(huì)導(dǎo)致函數(shù)直接結(jié)束,無法向下運(yùn)行。其次,在編寫程序時(shí),一定要足夠的細(xì)心,一定要注意細(xì)節(jié),這樣將為后面的調(diào)試減輕負(fù)擔(dān)。 } 西安建筑科技大學(xué)課程設(shè)計(jì)(論文) 第 37 頁 共 38 頁 課程設(shè)計(jì)過程的收獲 在此次課程設(shè)計(jì)中, 我對(duì) C++各部分知識(shí)有了更深的理 解,特別是 鏈?zhǔn)綄?shí)現(xiàn) 方面的相關(guān)知識(shí)。 select=8)。 }while (select0 amp。 default: break。 exit( 0 )。 break。 case 7: (c_list)。 system(pause)。 break。 break。 cout endlendl \t 該商品已經(jīng)查詢成功 ....... endl endl \t。 cout 。 cout 。 cout 。 cout 所查詢的信息為: endl。 break。 coutendl endl \t 該商品已經(jīng)修改成功 ....... endl endl \t。 cout 。 cout 。 cout 。 cout 修改后的信息為: endl。 coutendl。 cout商品貨架 :。 cout商品價(jià)格 :。 case 3: cout商品種類: 。 system(pause)。 coutshelf。 coutprice。 coutkind1。 cout 商品類型 商品價(jià)格 商品貨架 endl。 setw(10)。 break。 cout\n。 cout endl endl \t 該商品已經(jīng)添加成功 ....... endl endl \t。 cout 。 cout 。 cout 。 cout 所添加的信息為: endl。 coutendl。 cout商品貨架 :。 cout商品 價(jià)格 :。 switch (select) { case 1: cout商品種類: 。 cinselect。 do 西安建筑科技大學(xué)課程設(shè)計(jì)(論文) 第 34 頁 共 38 頁 { first_face()。 int shelf。 string kind1。 cout讀取成功! endl。 if(!()) h=hnext。!()) (reinterpret_castchar *(amp。position++) { if(fileamp。 for(position=0。 ()。 (fname,ios::in)。 cout請(qǐng)輸入讀取的文件名: endl。 int position。 } templateclass List_entry 西安建筑科技大學(xué)課程設(shè)計(jì)(論文) 第 33 頁 共 38 頁 void ListList_entry::loaddate(ListList_entryamp。 h=hnext。h。 NodeList_entry* h=head。 ()。 list) { int position。 cout endl \t\t◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆ endl \t\t◆ ◆ endl \t\t◆ 商店存貨管理系統(tǒng) ◆ endl \t\t◆ ◆ endl \t\t◆ 1. 商品增加 ◆ endl \t\t◆ ◆ 西安建筑科技大學(xué)課程設(shè)計(jì)(論文) 第 32 頁 共 38 頁 endl \t\t◆ 2. 商品刪除 ◆ endl \t\t◆ ◆ endl \t\t◆ 3. 商品修改 ◆ endl \t\t◆ ◆ endl \t\t◆ 4. 商品查詢 ◆ endl \t\t◆ ◆ endl \t\t◆ 5. 商品排序 ◆ endl \t\t◆ ◆ endl \t\t◆ 6. 存入文件 ◆ endl \t\t◆ ◆ endl \t\t◆ 7. 文件讀取◆ endl \t\t◆ ◆ endl \t\t◆ 8. 退出系統(tǒng) ◆ endl \t\t◆ ◆ endl \t\t◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆ endl endl \t\t。c) { coutc。 return q。iposition。 } templateclass List_entry NodeList_entry*ListList_entry::set_position(int position)const { NodeList_entry*q=head。 =0。 count=。copy) { List new_copy(copy)。 new_node=new_nodenext。 while(old_nodenext!=NULL) { old_node=old_nodenext。 if(old_node==NULL)head=NULL。copy) { count=。 } templateclass List_entry ListList_entry::~List() { clear()。q。)) { NodeList_entry *q。 head=NULL。 delete p。p。 } templateclass List_entry void ListList_entry::clear() { NodeList_entry *p,*q。 } templateclass List_entry bool ListList_entry::full()const { return false。 head=NULL。 coutendl。 } system(pause)。 coutendlendl。 cout 。 cout 。 cout 。q。 cout 排序后的信息 :endl。 trailingnext=first_unsorted。 else { last_sortednext=first_unsortednext。 current=trailingnext。 current=trailingnext。 head=first_unsorted。 if(first_unsortedpriceheadprice) { last_sortednext=first_unsortednext。 if(head!=NULL) { last_sorted=head。 return success。 price2=currentprice。 current=set_position(position)。 NodeList_entry *current。hkind1!=kin_d。 NodeList_entry* h=head。 cinkin_d。 int position。price2,List_entry amp。 list,string amp。 return success。 currentprice=price2。 current=set_position(position)。 西安建筑科技大學(xué)課程設(shè)計(jì)(論文) 第 27 頁 共 38 頁 NodeList_entry *current。hkind1!=kin_d。 NodeList_entry* h=head。 cinkin_d。 int position。price2,const List_entry amp。 list,const string amp。 return success。 delete current。 price2=currentprice。 head=headnext。 priornext=currentnext。 if(position0) { prior=set_position(position1)。 if(count==0)return fail
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1