Searching for words in file without using arrays

I was posed with a problem where I am not allowed to use arrays to check for certain words in a file. I'm very new to C++ but not to programming. This idea seems possible but I am not sure.

1) Is this possible?

2) How should I do this?

This is for homework so I don't want to see a finished program, I just want to get a little help because my professor refuses to provide more information.
There are many data structures you can use to store information.

You could make a vector, linked list, a set, a tree. There are many ways you can store information not using an array.

Vectors are very similar to arrays and are a usually implemented in place of an array.

http://www.cplusplus.com/reference/vector/vector/
Topic archived. No new replies allowed.