lexicographical order using an iterator when reading in from a file in c++?

Discussion in 'Computer Science & Culture' started by c++challenged, Feb 20, 2007.

Thread Status:
Not open for further replies.
  1. c++challenged Registered Member

    Messages:
    1
    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??
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. RubiksMaster Real eyes realize real lies Registered Senior Member

    Messages:
    1,646
    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."
     
  4. Google AdSense Guest Advertisement



    to hide all adverts.
  5. Stryder Keeper of "good" ideas. Valued Senior Member

    Messages:
    13,105
    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.
     
  6. Google AdSense Guest Advertisement



    to hide all adverts.
Thread Status:
Not open for further replies.

Share This Page