cerr.....?

What is the difference between cout and cerr
Their output destination is different but it should be the console for default.
To notice the difference between them you need to redirect their output, you can achieve this by changing their buffer ( http://www.cplusplus.com/reference/iostream/ios/rdbuf/ ) or by command line
(eg: your_program 1>file_for_cout 2>file_for_cerr
Last edited on
Topic archived. No new replies allowed.