Friday, July 31, 2009

How do I set the number of spaces between segments of a string in C? Ex. "There is 10 spaces after %10.10s me"

Can I do that? No! I can't do:


printf("There is 10 spaces after %10.10s ");


I want to out put like this


%26gt;%26gt;There is 10 spaces after me





SO what do I do? Thaaaaaank youuuuu

How do I set the number of spaces between segments of a string in C? Ex. "There is 10 spaces after %10.10s me"
What is wrong with?


printf("There is 10 spaces after ");





or


printf("There is 10 spaces after %10.10s"," ");


No comments:

Post a Comment