| 5 | 1/1 | 返回列表 |
| 查看: 1693 | 回復(fù): 6 | ||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | ||
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++,求高手幫助 |
新蟲 (小有名氣)
銅蟲 (小有名氣)
新蟲 (小有名氣)
|
一家汽車公司銷售不同類型的汽車。在采購(gòu)時(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è)法國(guó)的姐妹,大概意思就是這樣了。 |
至尊木蟲 (著名寫手)
驃騎將軍
|
只能幫你到這里了,復(fù)制進(jìn)一個(gè)后綴為cpp的文件運(yùn)行一下,根據(jù)需要再改改,添加一些需要的函數(shù) 運(yùn)行結(jié)果 |

| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 085600 295分求調(diào)劑 +15 | W55j 2026-03-30 | 18/900 |
|
|---|---|---|---|---|
|
[考研] 274求調(diào)劑 +4 | 薛定諤的虎。 2026-04-01 | 4/200 |
|
|
[考研] 材料調(diào)劑 +11 | 一樣YWY 2026-03-31 | 11/550 |
|
|
[考研] 270求調(diào)劑 +7 | 小杰pp 2026-03-31 | 8/400 |
|
|
[考研] 324分 085600材料與化工 +17 | 呆鵝oor 2026-03-27 | 17/850 |
|
|
[考研] 材料專業(yè)調(diào)劑 +5 | 啦啦啦哭 2026-03-31 | 6/300 |
|
|
[考研] 321求調(diào)劑 +8 | y-yh 2026-04-01 | 8/400 |
|
|
[考研] 086000生物與醫(yī)藥 初試274求調(diào)劑 +5 | 小叮當(dāng)來了 2026-03-30 | 6/300 |
|
|
[考研] 08工科,295,接受跨專業(yè)調(diào)劑 +6 | lmnlzy 2026-03-31 | 6/300 |
|
|
[考研] 311(085601)求調(diào)劑 +12 | liziyeyeye 2026-03-28 | 13/650 |
|
|
[考研] 一志愿:西北大學(xué),英一數(shù)一408-284分求調(diào)劑 +7 | 12.27 2026-03-27 | 7/350 |
|
|
[考研] 考研調(diào)劑求助 +7 | 13287130938 2026-03-31 | 7/350 |
|
|
[考研] 343求調(diào)劑 +8 | 愛羈絆 2026-03-28 | 8/400 |
|
|
[考研] 英一數(shù)一總分334求調(diào)劑 +4 | 陳陽坤 2026-03-31 | 4/200 |
|
|
[考研] 調(diào)劑 +4 | GK72 2026-03-30 | 4/200 |
|
|
[考研] 一志愿北京工業(yè)大學(xué),324分求調(diào)劑 +6 | 零八# 2026-03-28 | 6/300 |
|
|
[考研] 291求調(diào)劑 +5 | Y-cap 2026-03-29 | 6/300 |
|
|
[考研] 332求92調(diào)劑 +8 | 蕉蕉123 2026-03-28 | 8/400 |
|
|
[考研] 一志愿南京航空航天大學(xué)材料學(xué)碩求調(diào)劑 +3 | @taotao 2026-03-28 | 3/150 |
|
|
[考研] 環(huán)境專碩324分求調(diào)劑推薦 +5 | 軒小寧—— 2026-03-26 | 5/250 |
|