📄 contents.h
字号:
// Contents.h - Dry contents
#ifndef CONTENTS_H
#define CONTENTS_H
class Contents {
public:
Contents(const char* pStr = "cereal", double weight =0.3, double vol = 0);
// Constructor
~Contents(); // Destructor
double getWeight() const; // "Get contents weight" function
protected:
char* pName; // Contents type
double volume; // Cubic inches
double unitweight; // Pounds per cubic inch
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -