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

📄 invoiceprinter.h.html

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

<head>
	<title>invoiceprinter.h</title>
</head>

<body>
<pre>  1  #ifndef INVOICEPRINTER_H
  2  #define INVOICEPRINTER_H
  3  
  4  #include &lt;string&gt;
  5  
  6  using namespace std;
  7  
  8  <font color='#0000cc'>/**
  9     Formats an invoice.
 10  */</font>
 11  class InvoicePrinter
 12  {
 13  public:
 14     <font color='#0000cc'>/**
 15        Prints the invoice header.
 16        @param s the header string
 17     */</font>
 18     virtual void print_header(string s) = 0;
 19     <font color='#0000cc'>/**
 20        Prints a string in the next table cell
 21        @param value the value to print
 22        @param pad_right true if the cell is padded on the right
 23        with spaces
 24     */</font>
 25     virtual void print_string(string value, bool pad_right) = 0;
 26     <font color='#0000cc'>/**
 27        Prints a number in the next table cell
 28        @param value the value to print
 29        @param precision the number of digits after the decimal point
 30     */</font>
 31     virtual void print_number(double value, int precision) = 0;
 32     <font color='#0000cc'>/**
 33        Prints the invoice footer.
 34        @param s the footer string
 35        @param total the total amount due
 36     */</font>
 37     virtual void print_footer(string s, double total) = 0;
 38  };
 39  
 40  #endif</pre>
</body>
</html>

⌨️ 快捷键说明

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