By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,141 Members | 1,266 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,141 IT Pros & Developers. It's quick & easy.

Selection sort algorithm using strcmp

P: 14
I need hints for an algorithm using string compare in a selection sort.
I will be sorting lastnames and first namesalphbetically. if the selection sort encounters the same last name it then goes to first name and alphabetizes the list.

Smith, John
Smith, Juan



THANKS IN ADVANCE!!
Apr 23 '07 #1
Share this Question
Share on Google+
1 Reply


RedSon
Expert 5K+
P: 5,000
I need hints for an algorithm using string compare in a selection sort.
I will be sorting lastnames and first namesalphbetically. if the selection sort encounters the same last name it then goes to first name and alphabetizes the list.

Smith, John
Smith, Juan



THANKS IN ADVANCE!!
What are you talking about? What kind of hints are you looking for. Its pretty straight forward, use string compare to do a selection sort. Do you know what the algorithm for selection sort looks like? Do you know how to use string compare functions?
Apr 23 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.