Strategy Pattern: Sample application for C++?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
MattSharp
Forum Commoner
Posts: 62
Joined: Wed Apr 24, 2002 2:25 pm

Strategy Pattern: Sample application for C++?

Post 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.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
Post Reply