The following code contains a snippet from what will one day evolve into a rather large project; my next step is to find a way to read a string and find not only one word, but multiple words if necessary. I have tried different combinations of vars, arrays, and such but keep getting typical compiler results.
* I am always caught between flushing out the code myself until I cannot find the answer (everyday) or coming to these boards for a tad of friendly advice. Multiple String Search, anyone?
using namespace std;
cout<< "Hello, how are you today?\n"<< endl;
char * pch;
pch=strstr (name, "good"); //Searching for “good” in ^ Char str
cout<< "I am glad to hear you are doing well today."<< endl;
cout<< "Is anything wrong at all? Would you like to discuss it? \n"<< endl;
return 0; //END
For now, back to work coding.