mirror of
https://github.com/huihut/interview.git
synced 2024-03-22 13:10:48 +08:00
修改注释的位置
This commit is contained in:
parent
38c4b4679e
commit
66094d9a13
|
@ -579,20 +579,20 @@ std::auto_ptr<std::string> ps (new std::string(str));
|
|||
class Flyable //【能飞的】
|
||||
{
|
||||
public:
|
||||
virtual void takeoff() = 0; //起飞
|
||||
virtual void land() = 0; //降落
|
||||
virtual void takeoff() = 0; // 起飞
|
||||
virtual void land() = 0; // 降落
|
||||
}
|
||||
class Bird : public Flyable //【鸟】
|
||||
{
|
||||
public:
|
||||
void foraging() {...} //觅食
|
||||
void foraging() {...} // 觅食
|
||||
virtual void takeoff() {...}
|
||||
virtual void land() {...}
|
||||
}
|
||||
class Plane : public Flyable //【飞机】
|
||||
{
|
||||
public:
|
||||
void carry() {...} //运输
|
||||
void carry() {...} // 运输
|
||||
virtual void take off() {...}
|
||||
virtual void land() {...}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user