cplusplus.com
C++ : Forum : General C++ Programming : How to sort a list of Strings.
 
cplusplus.com
Information
Documentation
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs


post How to sort a list of Strings.

kamebr (1)
Hello guys, im new to file manipulation and i just create a file with a list of strings, ie:
AAAAAAAAA
CCCCCC
DDDDDD
EEEEEEEE
GGGG
HHH
FFFFFFFFF

I want to sort them inside the file then i need to print them to the console. How am i suppose to do that?
thankks =]
Bazzy (6258)
If you load them in a container you can use standard algorithms:
http://www.cplusplus.com/reference/algorithm/sort/

I want to sort them inside the file
You need to sort them in your program
Topic archived. No new replies allowed.