Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difference between cerr & cout

Status
Not open for further replies.

WarrenB

Programmer
Feb 7, 2001
38
GB
I posted a thread yesterday and someone suggested using cerr instead of cout. What is the difference between the two? Warren Brown
wazzer@btinternet.com
 
cerr goes to the 'standard error output stream'
cout goes to the 'standard output stream'

The environment you operate in determines what each of those is, i.e., in a CGI application the Web Server might hook the standard error output stream to a log file.

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top