📄 c08p407b.txt
字号:
class Sphere
{
public:
// constructors and operations as before
friend void readSphereData(Sphere& s);
friend void writeSphereData(Sphere& s);
private:
double theRadius; // the sphere's radius
}; // end class
class Ball: public Sphere
{
public:
Ball();
Ball(double initialRadius,
const string initialName);
void getName(string currentName) const;
void setName(const string newName);
void resetBall(double newRadius,
const string newName);
void displayStatistics() const;
private:
string theName; // the ball's name
}; // end class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -