📄 mailsystem.h.html
字号:
<html>
<head>
<title>mailsystem.h</title>
</head>
<body>
<pre> 1 #ifndef MAILSYSTEM_H
2 #define MAILSYSTEM_H
3
4 using namespace std;
5
6 #include <vector>
7 #include <string>
8
9 class Mailbox;
10
<font color="#0000cc">11 /**
12 A system of voice mail boxes
13 */</font>
14 class MailSystem
15 {
16 public:
<font color="#0000cc">17 /**
18 Constructs a voice mail system with a given number of
19 mailboxes.
20 @param mailbox_count the number of mailboxes
21 */</font>
22 MailSystem(int mailbox_count);
23
<font color="#0000cc">24 /**
25 Locate a mailbox.
26 @param ext the extension number
27 @return the mailbox, or NULL if not found
28 */</font>
29 Mailbox* find_mailbox(string ext) const;
30 private:
31 vector<Mailbox*> mailboxes;
32 };
33
34 #endif</pre>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -