C++ endl

I am using endl to put an \n character on the output stream, like this:

cout << endl << "SOME TEXT HERE" << endl;

There are times when this produces more than a single blank line in the output,
perhaps as many as a dozen or so. Why might this be happening?
I am using Xcode. Is there anything in the IDE that counts line and simulates a page break? If so, how do I turn it off?
I think that it may be because you output something as

cout << "Some string\n" << endl;

Here the new line is inserted twice in the output stream.
Topic archived. No new replies allowed.