Make me a simple bubblesort program. Then implement it in such a way so the client programmer can choose whether he wants to sort by ascending order or sort by descending order.
- Forward the results to standard iostream.
- Initialize a std::string array.
- Let the sorter sort arrays.
- Don't implement anything that has nothing to do with this assignment. No menu's etc.
- Use descriptive names.
- Implement app in your namespace, e.g.
Code:
namespace slashdot
{
}