C++有关问题,求大神答案

C++问题,求大神答案
这道题目我不太懂是什么意思,有高手能帮帮忙吗??(这道题具体要有那些功能、要求) 最后求个答案、答案、答案、答案
Task 1
Goal:
- Familiarise with development environment
- Simple class syntax

Task:
Implement a Vehicle class. Every Vehicle is characterised by a current speed (integer) and a maximal speed (integer). A Vehicle has the possibility to store maximum 5 features (string). Besides the necessary constructor(s), setters and getters, a Vehicle has some extra methods:
+ bool changeSpeed(int delta): adds delta to currentspeed if new value is in range [0..maxspeed], returns true if currentspeed has been updated.
+ void addFeature(string): adds string to featurelist if space is still available
+ bool removeFeature(string f): removes feature f from featurelist if f is found, shift content of all following features. Returns true if string has been removed.
+ std::string info() which returns a string like
The vehicle is running at speed [currentspeed]
and has [nr. of features] features:
* [feature1]
* ...

Create a test application which instantiates some vehicles, change speed, add and remove features and show output of info() on different situations to check the implementation






------解决方案--------------------
class Vehicle
{
public:
//constructr
Vehicle() { curSpeed=0; maxSpeed=0;}
~Vehicle(){}
//method

bool changespeed(int delta) 
{
int n = curSpeed + delta;
if(n < maxSpeed)
{
curSpeed = n;
return true;
}
return false;
}
void addFeature(string f)
{
if(fList.size() >= 5)
{
return;
}
fList.push_back(f);
}
bool removeFeature(string f)
{
vector<string>::iterator itr;
for (itr = fList.begin(); itr != fList.end();itr++)
{
if(f == *itr)
{
fList.erase(itr);
return true;
}
}
return false;
}

string info()
{
char msg[50];
string str;
sprintf(msg,"Vehicle current speed %d;...",curSpeed);
str = msg;
return str;
}
private:
int curSpeed;
int maxSpeed;
vector<string> fList;
}

以上代码并没有经过编译测试,大概就是这个意思
测试示例未提供