-
Notice that we use the cout operator.
请注意,我们使用了 cout 操作符,但 C++ 不能够识别。
-
Note that the error messages must go to STD: : cerr and not STD: : cout.
注意,错误消息必须发送到std: cerr而不是std: cout。
-
Next, add the following lines in the code for the second process (Listing 4) just after STD: : cout, and rebuild the code.
接下来,在第二个进程的代码(清单4)中std: cout后面添加以下代码并重新构建代码。
-
When you check whether help is the relevant command option for the program (this is what vmap.count (" help ") does), the options object is dumped to cout.
当您检查help是否为程序的恰当命令行选项(这是vmap . count (“ help ”)所做的工作)时,options对象将被转储到cout。
1. cout 用于在计算机屏幕上显示信息,是C++中iostream 类型的对象,C++的输出是用“流”(stream)的方式实现的,流运算符的定义等信息是存放在C++的输入输出流库中的,因此如果在程序中使用cout和流运算符,就必须使用预处理命令把头文件stream包含到本文件中,即 < iostream > 库,该库定义的名字都在命名空间 std 中,所以 cout 全称是 std::cout 。