PDA

View Full Version : Sorting strings alphabetically


jen phoenix
Jan 19, 2008, 12:45 AM
I'm making a source code for the program that sorts strings alphabetically in any sorting techniques(either quicksort,mergesort,heapsort or radix sort).. I will really appreciate if you can help me.. even just the program in sorting the strings in either the mention sorting techniques above.. please.. if possible,asap... tnx.its an assignment.. tnx.. waiting for your replies... :(

asterisk_man
Jan 19, 2008, 07:28 AM
We won't do your assignments for you. If you have any questions on how to implement a sort function we can answer that

jen phoenix
Jan 19, 2008, 09:57 AM
I did not force anyone to do it.. I only just need the function in sorting strings alphabetically by quick,or heap or merge or radix sort.. and by the way,there are persons that posts answers that has the source code already.. if you will give me the function on how to sort the strings alphabetically,it's OK.I can do the rest.thanks.

slapshot_oi
Feb 18, 2008, 07:58 AM
i'm making a source code for the program that sorts strings alphabetically in any sorting techniques(either quicksort,mergesort,heapsort or radix sort)..i will really appreciate if you can help me..even just the program in sorting the strings in either the mention sorting techniques above..please..if possible,asap...tnx.its an assignment..tnx..waiting for your replies...:(

That's a pretty simple program, I'd put the strings in a vector, lexicographically sort the individual characters, and move the strings around in the vector as necessary.