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

📄 item.h

📁 《Big C++ 》Third Edition电子书和代码全集-Part1
💻 H
字号:
#ifndef ITEM_H
#define ITEM_H

#include <string>

using namespace std;

/**
   Describes an item in an invoice.
*/
class Item
{  
public:
   /**
      Gets the unit price of this item.
      @return the unit price
   */
   virtual double get_unit_price() const = 0;
   /**
      Gets the description of this item.
      @return the description
   */
   virtual string get_description() const = 0;
   /**
      Gets the quantity of this item.
      @return the quantity
   */
   virtual int get_quantity() const = 0;
   /**
      Gets the total price of this item.
      @return the total price
   */
   double get_total_price() const;
   virtual ~Item(); 
};

#endif

⌨️ 快捷键说明

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