Quote:
I have the problem that when a string is used that the strstr element of my code no longer works. I can use strcmp but for the code I already have I would like to keep the strstr function is that still possible?
All the functions like strstr(), strlen(), strcmp(), strcat(), i.e. all the ones starting with 'str, only work on char arrays(and the char arrays have to end in a '\0'). Those functions do not work on string types. However, string types have their own comparable functions, which are usually more intuitive. You can use '==' to compare string types. You can get the length of a string type using myString.length(). You can add string types using '+'. And you can search string types using find().