|
-
May 31st, 2012, 02:23 PM
#11
Re: Algorithm problem
 Originally Posted by smurf12125
Wouldn't I need to since StringArray would repeat until it a break function is input? Because StringArray would keep inputing text to the .txt file and would clear itself when it inputs the text to the file.
Point to us where you were told that std::sort did anything that you stated. Or are you just making things up?
std::sort does that -- sorts a sequence of values. It doesn't do anything else. The last argument depends on the first two -- you are sorting std::string, not int, therefore the greater template must be based on std::string.
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|