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

📄 telephone.cpp.html

📁 《Big C++ 》Third Edition电子书和代码全集-Part1
💻 HTML
字号:
<html>

<head>
	<title>telephone.cpp</title>
</head>

<body>
<pre>  1  # include "telephone.h"
  2  # include "connection.h"
  3  
  4  void Telephone::run(Connection&amp; c)
  5  {
  6     bool more = true;
  7     while (more)
  8     {
  9        string input;
 10        getline(cin, input);
 11        if (input == "H")
 12           c.hangup();
 13        else if (input == "Q")
 14           more = false;
 15        else if ((input.length() == 1) &amp;&amp;
 16           (isdigit(input[0]) || input[0] == '#'))
 17           c.dial(input);
 18        else
 19           c.record(input);
 20     }
 21  }</pre>
</body>
</html>

⌨️ 快捷键说明

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