-
cout
how can I print exactly like this:
1234 5
23 10
5 600
notice how the numbers in the second column are alligned
I don't want to print like this
1234 5
23 10
5 600
Thanks?
[code][/code]tagged by Salem
@Max - re-edit this post to get the effect you want with code tags around the formatted text
-
-
Hmmmm........ it seems as if extra white spaces are automatically trimmed.
Max, I know what you're asking, and you should try using the '\t' escape character.
-
odd...someone played with my original post??!!!??
basically what I am trying to do is change this c code into c++
if (k%2==0) printf("%*s", -LINEWIDTH/2,t[k]);
else printf("%s\n",t[k]);
It prints values in two columns all numbers in the second column are alligned exactly under each others i think it is called left justified.
how do I do that?
-
It did not work..........
-