contents.h
来自「一本语言类编程书籍」· C头文件 代码 · 共 21 行
H
21 行
// 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 + =
减小字号Ctrl + -
显示快捷键?