C++: Standard Error


A common practice in computing is to send error messages to a different output stream than normal text console messages.

The normal messages print to what is called “standard output” or “standard out”. The error messages print to “standard error”.

This separation can be used to redirect error messages to a different place than normal messages.

Show how to print a message to standard error by printing “Goodbye, World!” on that stream.

#include <iostream>

int main () {
	std::cerr << "Goodbye, World!\n";


Content is available under GNU Free Documentation License 1.2.

Our team found a curious site for our readers that are fans of online gaming, a rather exciting site that provides the latest gaming technology. Casinodots.com is the site, they compile the best reviews of MGA casino utan svensk licens sites. This site might pique your curiosity and you can win extra money!