| 7 | 1/1 | 返回列表 |
| 查看: 1673 | 回復(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ā)表 | |
|---|---|---|---|---|
|
[考研] 【同濟(jì)軟件】軟件(085405)考研求調(diào)劑 +3 | 2026eternal 2026-03-18 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 08工科 320總分 求調(diào)劑 +5 | 梨花珞晚風(fēng) 2026-03-17 | 5/250 |
|
|
[考研] 331求調(diào)劑(0703有機(jī)化學(xué) +7 | ZY-05 2026-03-13 | 8/400 |
|
|
[考研] 288求調(diào)劑,一志愿華南理工大學(xué)071005 +4 | ioodiiij 2026-03-17 | 4/200 |
|
|
[考研] 材料,紡織,生物(0856、0710),化學(xué)招生啦 +3 | Eember. 2026-03-17 | 9/450 |
|
|
[考研] 生物學(xué)071000 329分求調(diào)劑 +3 | 我愛生物生物愛?/a> 2026-03-17 | 3/150 |
|
|
[考研] 307求調(diào)劑 +3 | 冷笙123 2026-03-17 | 3/150 |
|
|
[考研] 材料與化工求調(diào)劑 +6 | 為學(xué)666 2026-03-16 | 6/300 |
|
|
[考研] 【0856】化學(xué)工程(085602)313 分,本科學(xué)科評(píng)估A類院校化學(xué)工程與工藝,誠求調(diào)劑 +7 | 小劉快快上岸 2026-03-11 | 8/400 |
|
|
[考研] 26考研求調(diào)劑 +6 | 丶宏Sir 2026-03-13 | 6/300 |
|
|
[考研] 一志愿蘇州大學(xué)材料工程(085601)專碩有科研經(jīng)歷三項(xiàng)國獎(jiǎng)兩個(gè)實(shí)用型專利一項(xiàng)省級(jí)立項(xiàng) +6 | 大火山小火山 2026-03-16 | 8/400 |
|
|
[考研] 290求調(diào)劑 +6 | 孔志浩 2026-03-12 | 11/550 |
|
|
[考研] 0703一志愿211 285分求調(diào)劑 +5 | ly3471z 2026-03-13 | 5/250 |
|
|
[考研] 一志愿華中師范071000,325求調(diào)劑 +6 | RuitingC 2026-03-12 | 6/300 |
|
|
[考研] 085601材料工程315分求調(diào)劑 +3 | yang_0104 2026-03-15 | 3/150 |
|
|
[考研] 本科南京大學(xué)一志愿川大藥學(xué)327 +3 | 麥田耕者 2026-03-14 | 3/150 |
|
|
[考研] 復(fù)試調(diào)劑 +3 | 呼呼?~+123456 2026-03-14 | 3/150 |
|
|
[考研] 材料專碩350 求調(diào)劑 +4 | 王金科 2026-03-12 | 4/200 |
|
|
[考研] 328化工專碩求調(diào)劑 +4 | 。,。,。,。i 2026-03-12 | 4/200 |
|
|
[考研] 333求調(diào)劑 +3 | 152697 2026-03-12 | 4/200 |
|