stdout和stderr
In C++, how to print a string as a line to STDOUT? That is, the string and the newline character, nicely?
在C ++中,如何打印一个字符串作为一行STDOUT ? 也就是说,字符串和换行符很好吗?
And similarly, how to print the line to STDERR?
同样,如何将行打印到STDERR?
In C++, you may print the string and then 'n'
or std::endl
to STDOUT by operating on the std::cout
st