C++ cout - 它代表什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4901765/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-28 16:53:21  来源:igfitidea点击:

cout - what it stands for?

c++cout

提问by smallB

Possible Duplicate:
What does the “c” mean in cout, cin, cerr and clog?

可能的重复:
cout、cin、cerr 和 clog 中的“c”是什么意思?

Can someone please explain to me what cout stands for?

有人可以向我解释 cout 代表什么吗?

回答by Elpezmuerto

The "c" stands for character. By default, most systems have their standard output set to the console, where text messages are shown, although this can generally be redirected. The "c" is sometimes mistakenly attributed as "console."

“c”代表字符。默认情况下,大多数系统将其标准输出设置为显示文本消息的控制台,尽管这通常可以重定向。“c”有时被错误地归为“控制台”。

The "out" stands for output

“out”代表输出

Edit based on Jim Balter comment

根据吉姆巴尔特评论进行编辑

回答by Linus Kleen

coutis the standard output streamin C++.

cout是C++ 中的标准输出流

With it, you can print strings or numbers using the <<operator:

有了它,您可以使用<<运算符打印字符串或数字:

#include <iostream.h>

int main(int, char **) {
   std::cout << "Hello world" << std::endl;
   return 0;
}

回答by Jimmy

I'll hazard a guess...

我来冒个险...

Channel Out

通道输出