How to format out put so as to print it like this
I'm just frustrated over this ..can some1 help me?Code:The value is: 34567
The second value: 1
The third value is: 345
The name of the prog: mop
Thanks
Printable View
How to format out put so as to print it like this
I'm just frustrated over this ..can some1 help me?Code:The value is: 34567
The second value: 1
The third value is: 345
The name of the prog: mop
Thanks
Er...I really don't understand what you are asking but http://www.cplusplus.com/ref/cstdio/printf.html has helped me out alot with formatting. See the example program at the bottom of that page.
well where are these values coming from?
printf ("%3d", eg );
prints the number 3 spaces to the right
so u could say
printf ("%10d",eg )
and it would print it 10 spaces to the right
Code:example1) .
example2) .