C++ Question on using endl or newline