You should be aware that although "\n" and "endl" look visually similar (in the actions they perfrom) they are different and it is advised to use "\n".
You should be aware that although "\n" and "endl" look visually similar (in the actions they perfrom) they are different and it is advised to use "\n".
Uh... Huh? Actually, they do almost exactly the same. In fact, if I had to guess, I'd say std::endl() just pushes an '\n' into the stream.