OK, so I read the information on students asking questions, so I just want to make this really clear. I am a student looking for help on a school assignment.
So please help me format my question to an acceptable format for this forum if you feel I am inappropriate with it. Thank you.
OK, so, I am just starting out, I am working on a very simple program to take user input of their name (first and last) in both upper and lower case characters, (all mixed up) and then output the name with only the first letter of the first and last name in upper case, and the rest in lower case.
I have the program working to accept user input of their name, and display it back. (that was the easy part.) Now i am struggling with how to format the stored characters on cout.
Any tips would be great, even if it is just the function I should be looking at. I have looked in my text book and online, but the only information I can find on upper to lower case conversion is only for single character conversion ( using toupper and tolower) I'm sure there is a simple way to use it on a string, but then how do you separate that out into the first character going up, and the rest going down.
Sorry this wasn't a very well written question, and any criticism is probably well placed.
Thanks in advance,
sfsustudent
So please help me format my question to an acceptable format for this forum if you feel I am inappropriate with it. Thank you.
OK, so, I am just starting out, I am working on a very simple program to take user input of their name (first and last) in both upper and lower case characters, (all mixed up) and then output the name with only the first letter of the first and last name in upper case, and the rest in lower case.
I have the program working to accept user input of their name, and display it back. (that was the easy part.) Now i am struggling with how to format the stored characters on cout.
Any tips would be great, even if it is just the function I should be looking at. I have looked in my text book and online, but the only information I can find on upper to lower case conversion is only for single character conversion ( using toupper and tolower) I'm sure there is a simple way to use it on a string, but then how do you separate that out into the first character going up, and the rest going down.
Sorry this wasn't a very well written question, and any criticism is probably well placed.
Thanks in advance,
sfsustudent
Comment