键盘上的这些功能按键可让你编辑文件,你可用它们来清点、贴、印或复写正文。
互联网摘选
用于写入到标准输出的ostream对象,一般情况下用于程序的输出。
互联网摘选
如果你用过标准控制台流“cin”和“cout,”那现在的事情对你来说很简单。
互联网摘选
for those of you that don't know "cout" for console output, then here's an example.
对不了解控制台输出“cout”的人,这里有个例子。
互联网摘选
now to output to the file, it works exactly like how you would output to "cout. "
现在就输出到文件,看起来和“cout”的操作很像。
互联网摘选
接下来,在第二个进程的代码(清单4)中std::cout后面添加以下代码并重新构建代码
互联网摘选