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

📄 contents.h

📁 c++最经典的入门书籍
💻 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 + -