Possible Duplicate:
How to find an item in a std::vector?
I am using C++ Builder to create a VCL Forms application. I also have a vector array of appointment objects that each have a name, type, reminder date/time, a date/time, location and comments.
I am wanting to implement a find feature that will let a user find an appointment given certain criteria.
The user can choose to find an appointment in the vector array by either choosing the name, type etc or a combination of each.
What would be the best programming concept to use for this situation? The vector is not large. No more than 10 or 20 elements.
Thanks