📄 carton.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 int i = 50) const;
private:
string* pMaterial;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -