How do I perform a search operation on the contents of a vector?
My vector looks like this (the beginning of it):
Code:int main(void) { vector<Transaction> trans; //instantiates a vector called trans // sample records in the vector trans.push_back(Transaction(1365,"Norwich","20030901","1200",12,005,"Nobody present"));
I need to search the vector for each occurence of a date, format it, and then output it to the screen.
Thanks.