std::cerr (abbreviation of 'character error stream') is a stream for error information.
#include <iostream> int main() { std::cout << "Start of program\n"; std::cerr << "Error message: now in middle of program\n"; std::cout << "End of program\n"; }
Screen output:
Qt Creator IDE output (while in debugging mode):