Making multiple endlines

Is there a way to make multiple endl instead of using the following:

cout << endl << endl << endl
cout << string(3, '\n');
fill_n(ostreambuf_iterator<char>(cout), 3, '\n');
or with a loop
Last edited on
The actual endl flushes the stream though. Using the '\n' character doesn't. Just something to keep in mind.
Topic archived. No new replies allowed.