Sort Student's Names in Order

Hey guys this time I have to sort students names from input. I cannot use #algorithms so any ideas?
Last edited on
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
My teacher doesn't allow me to do this. He wants me to write out the code.
I think you misread.
me wrote:
Yeah, create a sorting algorithm yourself?
Oh xD nvm.
Thanks I didn't you could use the > operator on strings.
Topic archived. No new replies allowed.