📄 dog.h
字号:
// Chapter 10 of C++ How to Program
// Debugging Problem (dog.h)
#ifndef DOG_H
#define DOG_H
#include "animal.h"
#include <string.h>
using std::string;
// class Dog definition
class Dog : public Animal {
public:
Dog( int = 0, int = 0, string = "Toto" );
virtual void print() const;
virtual int getHeight() const;
virtual int getWeight() const;
string getName() const;
void setName( string );
private:
bool useMetric( string ) const;
string name;
int metricHeight;
int metricWeight;
}; // end class Dog
#endif // DOG_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -