I need to write a program where a name is to be entered as a continuous string, such as "JohnDoe" and then it prints out "John Doe". The stipulation is that the first name becomes its own string and the second name is also its own string. So basically the input string gets split and assigned to string a and string b, where the second capital letter exists.
I tried having the program convert each letter to ASCII and then starting the new string when it hit a value within the ASCII capital letters. But that was a mess that I couldnt even get to compile. That doesnt seem like the right approach.
Logically, how would you guys approach this? We just got done talking about strlen, strcpy, strcat, etc so I'm thinking the solution may lie there, but I'm not seeing how to utilize that, or if its the easiest way.
Thanks,
crazychile