invoice.h

来自「BigC++的源码」· C头文件 代码 · 共 37 行

H
37
字号
#ifndef INVOICE_H#define INVOICE_H#include <vector>using namespace std;#include "item.h"#include "invoiceprinter.h"#include "itemiterator.h"/**   Describes an invoice that bills for a sequence of items.*/class Invoice{public:   /**      Adds an item to this invoice.      @param it the item that the customer ordered   */   void add(Item* it);   /**      Prints the invoice.   */   void print(InvoicePrinter& printer);   /**      Creates an iterator through the items of this invoice.      @return the iterator   */   ItemIterator create_iterator();private:   vector<Item*> items;};#endif

⌨️ 快捷键说明

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