I am reading the following example from wikipedia.
#include <iostream>
int main()
{
std::cout << "Hello, world!\n";
return 0;
}
The article reads then as:
This program would output "Hello, world!" followed by a newline and standard output stream buffer flush.
I do not believe this is correct, since a std::flush
is not required on '\n'
.
Should I go ahead and edit the article changing the '\n'
into std::endl
?