This may sound dumb but I have the book call Jumping into C++ and I believe that the author is using the wrong syntax for the end of a line. I'm just learning C++ also and I know that I can use ( endl ) that's end L not one, I believe if you are to use an end of live by it self you can put it in "\n" in quotations.
The author uses '\n' is that proper in C++ or is that a carry over from C...?
Another subtlety, '\n' (with single quotes) is the new line character. "\n" (with double quotes) is actually a character array (or C-style string) that is 2 characters long containing the new line character and the null character.
Some functions, like the stream inserters, are overridden to handle both characters and character arrays. In that case, either will work.
libc automatically handles translations from "\n" to whatever the platform's newline sequence is. Unless you are dealing with binary files directly, you don't have to worry about it. Just "\n" will do.