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

📄 bundle.h.html

📁 《Big C++ 》Third Edition电子书和代码全集-Part1
💻 HTML
字号:
<html>

<head>
	<title>bundle.h</title>
</head>

<body>
<pre>  1  #ifndef BUNDLE_H
  2  #define BUNDLE_H
  3  
  4  #include &lt;vector&gt;
  5  #include "item.h"
  6  
  7  <font color='#0000cc'>/**
  8     A bundle of items that is again an item.
  9  */</font>
 10  class Bundle : public Item
 11  {
 12  public:
 13     <font color='#0000cc'>/**
 14        Adds an item to this bundle.
 15        @param it the item to add
 16     */</font>
 17     void add(Item* it);
 18     virtual double get_unit_price() const;
 19     virtual string get_description() const;
 20     virtual int get_quantity() const;
 21  private:
 22     vector&lt;Item*&gt; items;
 23  };
 24  
 25  #endif</pre>
</body>
</html>

⌨️ 快捷键说明

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