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

📄 simpleinvoiceprinter.h

📁 BigC++的源码
💻 H
字号:
#ifndef SIMPLEINVOICEPRINTER_H#define SIMPLEINVOICEPRINTER_H#include <string>#include <vector>using namespace std;#include "invoiceprinter.h"/**   Prints an invoice in a monospaced font, using spaces to    align the columns.*/class SimpleInvoicePrinter : public InvoicePrinter{public:   /**      Constructs a simple invoice printer and sets the colum widths.      @param widths an array of column widths   */   SimpleInvoicePrinter(vector<int> widths);   virtual void print_header(string s);   virtual void print_string(string value, bool pad_right);   virtual void print_number(double value, int precision);   virtual void print_footer(string s, double total);private:   void next_column();   int column;   vector<int> column_widths;};#endif

⌨️ 快捷键说明

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