Sort Student's Names in Order

Jul 27, 2014 at 12:07am
Hey guys this time I have to sort students names from input. I cannot use #algorithms so any ideas?
Last edited on Jul 27, 2014 at 12:07am
Jul 27, 2014 at 12:12am
Yeah, create a sorting algorithm yourself?
http://www.cprogramming.com/tutorial/computersciencetheory/sortcomp.html
http://www.cplusplus.com/faq/sequences/sequencing/sort-algorithms/

By the way, you can reuse your bubble sort from the other thread and simply compare the names instead of ids. http://www.cplusplus.com/reference/string/string/operators/
Last edited on Jul 27, 2014 at 12:15am
Jul 27, 2014 at 12:16am
My teacher doesn't allow me to do this. He wants me to write out the code.
Jul 27, 2014 at 12:16am
I think you misread.
me wrote:
Yeah, create a sorting algorithm yourself?
Jul 27, 2014 at 12:17am
Oh xD nvm.
Jul 27, 2014 at 12:21am
Thanks I didn't you could use the > operator on strings.
Topic archived. No new replies allowed.