class fuel;
class engine
{
friend class fuel;
private;
int powerleveel;
public;
engine(){powreLexel=0;}
void engine_fn(fuel &f);
};
class fuel
{
friend class engine;
private;
int fuelLevel;
public;
fuel(){fuelLevel=0;}
void fuel_fn(engine &e);
};
5-4练习
最新推荐文章于 2024-09-09 23:49:04 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)