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

📄 product.h

📁 BigC++的源码
💻 H
字号:
#ifndef PRODUCT_H#define PRODUCT_H#include <string>using namespace std;/**   Describes a product with a description and a price.*/class Product{public:     /**      Constructs a product with a given description and price.       @param d the description      @param p the price   */   Product(string d, double p);   /**      Gets the product description.      @return the description   */   string get_description() const;   /**      Gets the product price.      @return the price   */   double get_price() const;private:    string description;   double price;};inline string Product::get_description() const{     return description;}inline double Product::get_price() const{   return price;}#endif

⌨️ 快捷键说明

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