官方解释: cout——Standard output stream Object of class ostream that represents the standard output stream oriented to narrow characters (of type char). It corresponds to the C stream stdout cerr——Standard output stream for errors Object of class ostream…
http://stackoverflow.com/questions/16772842/what-is-the-difference-between-cout-cerr-clog-of-iostream-header-in-c-when cerr for errors cout for normal output clog for logging The major difference is that std::cerr is not buffered like the other two.…