Page 1 of 1

Strategy Pattern: Sample application for C++?

Posted: Mon May 12, 2003 8:22 pm
by MattSharp
For my Design Patterns class we have to do a presentation on the Strategy Pattern and make a VERY simple example application to demonstrate when it would be used. Now before you try to give me <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> and say we aren't here to do your homework for you, I am not asking anyone to give me code. Just if you have an idea for a simple app we can write. The professor is perfectly ok with getting ideas from other professors and people so don't feel like you are doing any wrong by helping me. I just wondered if any programmers out there had an ideas. Thanks.

Posted: Mon May 12, 2003 8:41 pm
by volka
I came to believe most profs find it appealing if you continue with something you've learned earlier (nothing too creative ;) ).
Sorting algorithms probably still are at a high rate.
Shouldn't be too difficult to write the general sorting algorithm delegating to the detailed implementations for different data types.
Yeah, yet another bubble sort :D