escape sequences....
for example
Code:
cout << "Hi There!" << endl;
cout << "I'm on the next line!\n";
cout << "So am I! wait...but where's the endl?";
use a backslash '\' for an escape sequence. The Compiler will not print it. in your string say \n somewhere and it will go to the next line. use \t and it will skip 5 spaces(\t means tab). If you want to print a backslash, then type this:
Code:
cout << "Bonjour!\\Hello!\n";
cout << "Je m'eppelle Spongebob.\n\\\nmy name is SpongeBob.";
That should print:
Bonjour!\Hello!
Je m'eppelle Spongebob.
\\
My name is SpongeBob.
Get it?