You are here

Text Wrapping and Vertical Spacing

10 February, 2015 - 12:44

There are two items used to keep output from flling up a line and wrapping on to the next line. They are:

  • Using the escape code sequence of \n within your strings (text between as set of double quote marks).
  • Using the item from the iostream named: endl; which is short for end line.

Thus the programmer is responsible for making text show reasonably on the screen. Both of the above also allow for adequate vertical spacing when needed in your output.