Not sure what you mean but \t is a tab for printf() etc.
Also for printf() you can set widths on your placeholders and left justify. For instance use
%-20s for a string that will print left justified and force 20 characters of spacing for the string.
What is the C++ code for "tab" or for spacing..?
Your question is not very clear. If you mean the escape for the tab character, it is '\t'.
Reply:if you mean like skipping a line on the output then its:
cout %26lt;%26lt; endl;
or you could use this method:
cout %26lt;%26lt; "words words words.\n" // the '\n' makes a new line
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment