'\n' is simply equivalent to a newline, you could have easily replaced it outside the qoutes as
endl as you have done with the other lines if you had wanted.. it was just easier to do that

.
Reputation Points: 1429
Solved Threads: 129
Posting Virtuoso
Offline 1,542 posts
since Mar 2008