cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Sorting on name (with vectors)
Sorting on name (with vectors)
Nov 29, 2011 at 2:09am UTC
MrMajestyk
(21)
Im new to vectors in c++ and i am trying to create a function
to sort data from a file on name or postal code.
I read something about indexing.
How could i do this?
Nov 29, 2011 at 2:11am UTC
Athar
(4466)
By calling std::sort with a custom comparison function. See:
http://www.cplusplus.com/reference/algorithm/sort/
Nov 29, 2011 at 2:13am UTC
MrMajestyk
(21)
Thanks for info.
Just saw it in the other thread ;)
Topic archived. No new replies allowed.