I am currently teaching myself how to program in C ( only about a month of experience as of yet) and have taken on an assignment from someone here on the forums.
I was to write a program that accepts a string then passes that string through functions that had to be written by me to do the following:
1) convert the entire string to uppercase and send it to the standard output
2) convert the entire string to lowercase and send it to the standard output
3) convert the first letter of each word to uppercase and send it to the standard output
I was successful in #1 and #2. I have been having difficulties with the last. I seem to consistently produce all uppercase or all lowercase for some reason.
I don't want an answer. If someone could just give me a hint or tip as to the logic behind this. I have found it helps me more to try and work most of these out, without being shown as it helps me to start thinking like a programmer.
I can't use the string.h library for this exercise either.