Alrighty, now, say we want to make a new line in our output, like this:
How would we do this?
Very, very simple actually.
In our output, we will simply add one of two things. We have two choices, each having their own advantages.
Option one:
The "Backslash N" method.
While outputting a string, simply add \n to your output and it will make a new line! Cool, huh?
Here's an example:
cout<<"This\nis a new line.";
This will output:
This
is a new line.
Now, for option 2. This is more annoying method, in my opinion, because it requires more typing.
This is the endl method. We will use it somewhat like the Backslash N method, but a bit different.
Here's an example:
cout<<"This"<<endl<<"is a new line.";
It will output the same thing as before.
You can see why this method is a bit more annoying..obviously.
Hope this helps! :D