telephone.cpp
来自「BigC++的源码」· C++ 代码 · 共 23 行
CPP
23 行
# include "telephone.h"# include "connection.h"void Telephone::run(Connection& c){ bool more = true; while (more) { string input; getline(cin, input); if (input == "H") c.hangup(); else if (input == "Q") more = false; else if ((input.length() == 1) && (isdigit(input[0]) || input[0] == '#')) c.dial(input); else c.record(input); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?