📄 message.h.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 <string>
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 + -