endl flushes the buffer, where \n does not. Otherwise, they are the same.
endl is good, because if the program crashes, your stuff gets printed. BUT, there is a performance hit with endl.
Starkey
2010-10-26 17:49:05