Sunday 29 September 2013

Coding 9 : Align text


In this page, I will tell you how to make text align in programming. For make in programming, the format is below this :
%[flags][witdh][.precision]type

Example I want to make right align text with “World” word, the coding is:
printf(“%10s”,”World”);//example the width is 10.

For complete coding, you can download below this:

No comments:

Post a Comment