Hi everyone,
Please give me some good idea how to detect a partcular word (say "you" in a string when you read in using getline. I only know how to detect a word from a constant string by using strstr(), and find() for a single character matching. But strstr() does not allow you to detect a word from a line you read from a file. Any ideas will be greatly appreciated. Thanks
Miketm
Please give me some good idea how to detect a partcular word (say "you" in a string when you read in using getline. I only know how to detect a word from a constant string by using strstr(), and find() for a single character matching. But strstr() does not allow you to detect a word from a line you read from a file. Any ideas will be greatly appreciated. Thanks
Miketm