Search Keyword in String in C++

Hi
I am a novice in the world of programming and now want yours help . Suppose I have a string in c++ .

string s("I am a student.I am a student.I am a student.I am a student");

Now I want to know what times the word "student" appears in this string . For this , what can I do ?

Topic archived. No new replies allowed.