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

📄 message.h.html

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

<head>
	<title>message.h</title>
</head>

<body>
<pre>  1  #ifndef MESSAGE_H
  2  #define MESSAGE_H
  3  
  4  using namespace std;
  5  
  6  #include &lt;string&gt;
  7  
  <font color="#0000cc">8  /**
  9     A message left by a caller
 10  */</font>
 11  class Message 
 12  {
 13  public:
 <font color="#0000cc">14     /**
 15        Construct a message object
 16        @param message_text the message text
 17     */</font>
 18     Message(string message_text);
 19  
 <font color="#0000cc">20     /**
 21        Get the message text
 22        @ return message text
 23     */</font>
 24     string get_text() const;
 25  private:
 26     string text;
 27  };
 28  
 29  inline Message::Message(string message_text) 
 30     : text(message_text) { }
 31  
 32  inline string Message::get_text() const
 33  {
 34     return text;
 35  }
 36  
 37  #endif</pre>
</body>
</html>

⌨️ 快捷键说明

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