can someone please give me a code or sample program that will output the inputs into alphabetical order?
C++ code for arranging the inputs in alphabetical order?
There are lots of sorting algorithms for sorting, try googling "sorting algorithm" and you should get lots of hits. Bubble sorts are commonly taught to first year computer science majors, but there's also the quicksort, merge sort, heap sort, and so on. All you need to do is find a good algorithm, coding is easy from there.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment