endl is preferable to "\n", because it also flushes the buffer. Or something like that.