| 7 | 1/1 | 返回列表 |
| 查看: 1674 | 回復(fù): 6 | ||
zhaowei8686新蟲 (小有名氣)
|
[求助]
求助一個(gè)C++的程序,十萬火急 已有1人參與
|
|
題目是: The Car Company A car company sells different car models. During the purchase order, the customer can choose between different types of engines, body chapes (coupé, sedan, estate), body colors, etc... Can you create a C++ class architecture that will provide a car object, corresponding to our needs ? Every car has some typical functions to read mileage, fuel gauge or number of seats, start the engine, turn right, etc... Feel free to implement some you think relevant to exploit the C++ object model. Example of function calls to implement: Car* myCar = CarCompany.getCar( paremeters ); fuel_type = myCar.getFuleType(); km = myCar.getMileAge(); (etc...) 本人沒有學(xué)過C++,求高手幫助 |
銅蟲 (小有名氣)
新蟲 (小有名氣)
|
一家汽車公司銷售不同類型的汽車。在采購時(shí),客戶可以選擇不同類型的發(fā)動(dòng)機(jī),車體(比如雙門跑車,轎車,房車等),車身顏色等等.. 你可以創(chuàng)建一個(gè)C + +類的架構(gòu),根據(jù)我們的需求,來提供一個(gè)汽車對(duì)象。 每輛汽車都有一些典型的函數(shù)來讀取行駛里程,燃油表或座位數(shù),啟動(dòng)發(fā)動(dòng)機(jī),右轉(zhuǎn)等。隨便來實(shí)現(xiàn)一些你認(rèn)為相關(guān)的利用了C + +對(duì)象模型。 基本上就是這樣子的,出題的是一個(gè)法國的姐妹,大概意思就是這樣了。 |
至尊木蟲 (著名寫手)
驃騎將軍
|
只能幫你到這里了,復(fù)制進(jìn)一個(gè)后綴為cpp的文件運(yùn)行一下,根據(jù)需要再改改,添加一些需要的函數(shù) 運(yùn)行結(jié)果 |

鐵桿木蟲 (著名寫手)
ส็็็

新蟲 (小有名氣)
| 7 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 328求調(diào)劑,英語六級(jí)551,有科研經(jīng)歷 +3 | 生物工程調(diào)劑 2026-03-17 | 7/350 |
|
|---|---|---|---|---|
|
[考研] 085601專碩,總分342求調(diào)劑,地區(qū)不限 +5 | share_joy 2026-03-16 | 5/250 |
|
|
[考研] 311求調(diào)劑 +6 | 26研0 2026-03-15 | 6/300 |
|
|
[考研] 0854可跨調(diào)劑,一作一項(xiàng)核心論文五項(xiàng)專利,省、國級(jí)證書40+數(shù)一英一287 +8 | 小李0854 2026-03-16 | 8/400 |
|
|
[考研] 收復(fù)試調(diào)劑生 +4 | 雨后秋荷 2026-03-18 | 4/200 |
|
|
[考研] 280求調(diào)劑 +6 | 咕嚕曉曉 2026-03-18 | 7/350 |
|
|
[考研] 環(huán)境工程調(diào)劑 +8 | 大可digkids 2026-03-16 | 8/400 |
|
|
[考研] 301求調(diào)劑 +4 | A_JiXing 2026-03-16 | 4/200 |
|
|
[考研] 一志愿蘇州大學(xué)材料工程(085601)專碩有科研經(jīng)歷三項(xiàng)國獎(jiǎng)兩個(gè)實(shí)用型專利一項(xiàng)省級(jí)立項(xiàng) +6 | 大火山小火山 2026-03-16 | 8/400 |
|
|
[考博] 26申博 +4 | 八旬速覽 2026-03-16 | 4/200 |
|
|
[考研]
|
zhouzhen654 2026-03-16 | 3/150 |
|
|
[考研] 070305求調(diào)劑 +3 | mlpqaz03 2026-03-14 | 4/200 |
|
|
[考研] 中科大材料與化工319求調(diào)劑 +3 | 孟鑫材料 2026-03-14 | 3/150 |
|
|
[考研] 266求調(diào)劑 +4 | 學(xué)員97LZgn 2026-03-13 | 4/200 |
|
|
[考研] 材料與化工(0856)304求B區(qū)調(diào)劑 +6 | 邱gl 2026-03-12 | 7/350 |
|
|
[考研] 材料工程調(diào)劑 +9 | 咪咪空空 2026-03-12 | 9/450 |
|
|
[考研] 0856材料與化工301求調(diào)劑 +5 | 奕束光 2026-03-13 | 5/250 |
|
|
[考研] 304求調(diào)劑 +7 | 7712b 2026-03-13 | 7/350 |
|
|
[考研] 求調(diào)劑 +5 | 一定有學(xué)上- 2026-03-12 | 5/250 |
|
|
[考研] 工科材料085601 279求調(diào)劑 +8 | 困于星晨 2026-03-12 | 10/500 |
|