⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 carton.h

📁 c++最经典的入门书籍
💻 H
字号:
// Carton.h
#ifndef CARTON_H
#define CARTON_H

#include <string>
#include "Box.h"
using std::string;

class Carton : public Box {
  public:
    // Constructor explicitly calling the base constructor
    Carton(double lv, double wv, double hv, string material = "Cardboard");

    // Copy constructor
    Carton(const Carton& aCarton);

    // Destructor
    ~Carton();

    // Function to calculate the volume of a Carton object
    virtual double volume() const;

  private:
    string* pMaterial;
};

#endif

⌨️ 快捷键说明

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