c++ - 交互设备的定义

标签 c++ gcc clang standards

根据 C++11 标准 (§1.9.8):

The input and output dynamics of interactive devices shall take place in such a fashion that prompting output is actually delivered before a program waits for input. What constitutes an interactive device is implementation-defined.

GCC、Clang等编译器是如何定义“交互设备”的?

最佳答案

我猜那部分是在考虑 CINT C++ 解释器的情况下编写的。

但我不认为 CINT 目前的状态是非常符合标准的。

关于c++ - 交互设备的定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21592083/

相关文章:

c++ - clang 和 __float128 错误/错误

c - LLVM 优化错误或未定义的行为?

c++ - -std=c++11 和 -std=gnu++11 有什么区别?

c++ - MFC:删除动态创建的 CWnd 对象

gcc - 叮当说 "cstdlib file not found"

c++ - 无法将我的对象推送到 std::vector - gcc 找不到类似复制构造的东西

c++ - 是否有可以与 GCC 4.9.x 一起使用的 GSL 实现?

C++/Qt - 无法从 qrc 文件打开 .txt

c++ - 用于 C++ (MFC) 的 SQLite OLE DB 驱动程序

c++ - 如何在opencv中定义递减的rowRange