+ 3
How do I add spaces?
11 Answers
+ 12
if you think on spaces in text just put it in your string and new line you can get by using "\n" in your string or << endl <<
+ 1
You can also use â\tâ for tab.
+ 1
also methods like setw() can be used to add proper spaces in order to get good and clear arrangement of cout stuff
0
you can use \n for it
0
\t for blank space
- 1
if u want space in question and answer u may use " /t" or just give space when u end cout statement using double quote.
- 1
If you mean regular whitespace, try:
cout << " ";
- 1
yup
- 1
cout<<" " ;
depend on how much space you need just add space between double quotes.
- 1
endl
- 1
You can as well use double" \n\n" for a blank space in between two or more lines.