Hello,
I have some questions about strings...
If I use scanf to scan in a string, then I want to take parts of the string to do various processes, then how would I do it?
eg. If the input that the user types in is "print this is cool"; then how could I get the "print" and "this is cool" into 2 different strings?
Also, I know that this would be pretty similiar to what the above question is, but how could I take parts of a string for one of the string functions.
eg. If I had a string with "hi my name is joe", then how could I take, say take the string from the first character to the 7th character? Similiarly for the 2nd character to the 8th character? And so on... I would like to use strcmp, ie. compare different parts of a string to parts of a string (or a string).
Thanks