RE: Re[2]: [Dev-C++] how to redirect clog??
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Abhijit S. <mu...@gm...> - 2003-07-17 19:34:00
|
Hello, Zodiaq. > I think you might be missing something - clog is exactly the same as > cout or cerr - these are just instaces of ostream... I want to use I think you mean to say that they are *instances*of*the*same*class* - the way you've said it above makes it sound like they are actually the same stream. cin - Standard input, file descriptor 0 cout - Standard output, file descriptor 1 cerr - Standard error, file descriptor 2 clog - Standard error, file descriptor 2 The difference between cerr and clog are that cerr is guaranteed to be unbuffered, whereas clog may be buffered. By default, cin takes input from the console, and cout and cerr send output to the console. On DOS, standard in and out can be redirected, but not standard error (Unix shells and their clones for Windows support redirection of any of these). -- Abhijit Shylanath Homepage: http://mudeth.tripod.com/ |