View Single Post
Old 06-25-2005, 12:40 AM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
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
{
}
__________________
Valmont is offline   Reply With Quote