I'm trying to learn C on my own and am having a problem with an example from C Plus Primer 4th edition chapter 4.
I can do everything except for aligning the characters. I can get the strlen(firstname) but how can I put the number right under the last letter of the first name? If the first name is Bob then 3 should be under the b. I looked through the chapter again and there isn't anything that I could use to help me do that.Write a program that requests the user's first name and then the user's last name. Have it print the entered names on one line and the number of letters in each name on the following line. Align each letter count with the end of the corresponding name.



LinkBack URL
About LinkBacks



They do in the next chapter though. Do you think there could be an easier way or should this question of been in the next chapter?
Thanks for your insight though.