mailsystem.h

来自「BigC++的源码」· C头文件 代码 · 共 35 行

H
35
字号
#ifndef MAILSYSTEM_H
#define MAILSYSTEM_H

using namespace std;

#include <vector>
#include <string>

class Mailbox;

/**
   A system of voice mail boxes.
*/
class MailSystem
{
public:
   /**
      Constructs a voice mail system with a given number of
      mailboxes.
      @param mailbox_count the number of mailboxes
   */
   MailSystem(int mailbox_count);

   /**
      Locate a mailbox.
      @param ext the extension number
      @return the mailbox, or NULL if not found
   */
   Mailbox* find_mailbox(string ext) const;
private:
   vector<Mailbox*> mailboxes;
};

#endif

⌨️ 快捷键说明

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