📄 telephone.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 + -