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

📄 telephone.h

📁 BigC++的源码
💻 H
字号:
#ifndef TELEPHONE_H
#define TELEPHONE_H

using namespace std;

#include <iostream>
#include <string>

class Connection;

/**
   A telephone that takes simulated keystrokes and voice input
   from the user and simulates spoken text.
*/
class Telephone
{
public:
   /**
      Speak a message to standard output.
      @param output the text that will be spoken
   */
   void speak(string output);

   /**
      Loops reading user input and passes the input
      to the Connection object's functions dial, record,
      or hangup. 
      @param c the connection that connects this phone
      to the voice mail system
   */
   void run(Connection& c);
};

inline void Telephone::speak(string output)
{
   cout << output;
}

#endif

⌨️ 快捷键说明

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