Skip to content

Latest commit

 

History

History
60 lines (34 loc) · 1.23 KB

CppStdCerr.md

File metadata and controls

60 lines (34 loc) · 1.23 KB

 

 

 

 

 

 

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:

 


Start of program End of program

 

Qt Creator IDE output (while in debugging mode):

 


Error message: now in middle of program Start of program End of program