📄 bundle.h
字号:
#ifndef BUNDLE_H#define BUNDLE_H#include <vector>#include "item.h"/** A bundle of items that is again an item.*/class Bundle : public Item{public: /** Adds an item to this bundle. @param it the item to add */ void add(Item* it); virtual double get_unit_price() const; virtual string get_description() const; virtual int get_quantity() const; private: vector<Item*> items;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -