can.h

来自「一本语言类编程书籍」· C头文件 代码 · 共 19 行

H
19
字号
// Can.h Class defining a cylindrical can of a given height and diameter
#ifndef CAN_H
#define CAN_H

#include "Vessel.h"

class Can : public Vessel {
  public:
    Can(double canDiameter, double canHeight);
    virtual double volume() const;

  protected:
    double diameter;
    double height;
    static const double pi;
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?