Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   C++ (https://www.askmehelpdesk.com/forumdisplay.php?f=439)
-   -   Sorting strings alphabetically (https://www.askmehelpdesk.com/showthread.php?t=174073)

  • Jan 19, 2008, 12:45 AM
    jen phoenix
    Sorting strings alphabetically
    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... :(
  • Jan 19, 2008, 07:28 AM
    asterisk_man
    We won't do your assignments for you. If you have any questions on how to implement a sort function we can answer that
  • Jan 19, 2008, 09:57 AM
    jen phoenix
    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.
  • Feb 18, 2008, 07:58 AM
    slapshot_oi
    Quote:

    Originally Posted by jen phoenix
    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.

  • All times are GMT -7. The time now is 01:05 PM.