Thread: Practice...
View Single Post
Old 02-16-2005, 05:06 PM   #11 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Wait a minute...

I've asked you to do two things:
1) Change my Sorter into a template. E.g.:
template<typename T>
void bubble_sort(....) { }

2) Implement a feature so I (as a programmer) can choose between ascending or descending bubble sort.

And one restriction:
1) Use my code as the base code.

I never asked for a string array. I never asked for a "void main()". I never asked for user input. In fact I explicitly said you should use the std::string sLeaderArray! Don't go beyond what is asked.

I am trying to demonstrate something. I want to do it in such a way, where you can be proud on your own achievements. That means that you will build the things I want, the way I want. I let you think. You will build, and most likely fail. I let you think again. And you will learn and re-build. After two weeks of hard work, you will never forget this course and you will be able to operate like a mature individual when it comes to design and C++. After that, we can have a laugh and analyze the good and the bad things we encountered on our way. But for now, the goal is to let you "see". So stay on it.

Pretend this course costs you or your employer $300 per day...

- Val -
__________________

Last edited by Valmont; 02-16-2005 at 05:35 PM.
Valmont is offline   Reply With Quote