Searching through text

For my class, I am asked to create a program that accepts text from the user. After the user inputs the text, the program is to search through it to find a certain word or phrase. I know that I need to use an array, but I'm not sure how to. One of my classmates told me that he used a vector to do it, but I don't know how to do it with a vector either. I am not asking for anyone to write the program for me, I just need some steps in the right direction.
Have a look a cplusplus.com Reference. There you'll find a lot of example code.
Topic archived. No new replies allowed.