View Single Post
  #5 (permalink)  
Old 04-20-2007, 12:12 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,392
Last Blog:
wxWidgets is NOT code ...
Rep Power: 37
WingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to behold
Default

You're looking at needing two things:
1) you need a string copy function and a string compare function
2) you will need a temporary variable to hold values in.

What you need to do is use the string compare function to compare the strings, and a copy function with the temporary string to perform a swap. Once you have those, you should be able to modify the bubble sort to accomplish what you want.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Reply With Quote

Sponsored Links