View Full Version : lexicographical order using an iterator when reading in from a file in c++?


c++challenged
02-19-07, 07:07 PM
Hi!
In my program I read data in from a file into a vector of vectors and then search through and print out certain matches. I have to use an iterator to print out those matches in lexicographical order (based on the first column). Any ideas how to do this??

RubiksMaster
02-19-07, 07:39 PM
Yes, but I'd rather not do your school project for you. If you need help with something specific, I'd be happy to help, but I'm not going to just tell you "this is the way to do your project."

Stryder
02-20-07, 04:16 AM
Like Rubiks mentions, people aren't going to show you how to do it. What you are best doing is writing your own "Attempt" and then posting your source should you not be able to get it to work. People will then aid if they see a more Ergonomic use of programming or identify any errors in your syntax.