c++ - cout、cin、cerr 和 clog 中的 "c"是什么意思?

标签 c++ iostream standard-library

coutcincerrclog 名称中的“c”是什么意思?

我会说 char 但我没有找到任何可以确认的东西。

最佳答案

The "c" stands for "character" because iostreams map values to and from byte (char) representations. [Bjarne Stroustrup's C++ Style and Technique FAQ]

关于c++ - cout、cin、cerr 和 clog 中的 "c"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2262232/

相关文章:

c++ - 在自定义内存管理器中使用 vector

c++ - 读取包含 Unicode 字符的文件

C - 不使用 iostream 读取文件

c++ - 关于ostream类和运算符<<的误解

c# - C 构建(从 C# 的角度)

c++ - 为什么 std::size() 不是 gcc 8.2.0 中的 std 成员

c++ - 顶点/索引缓冲区与 OpenGL 3.3 混淆

c++ - 库/应用程序组合的 C++ 错误处理/错误日志记录

c++ - 有什么方法可以获取 llvm 引用指针值的原始类型(即指针类型)

python - 在 Python 中使用内置库会受到惩罚吗?