Strategy Pattern: Sample application for C++?
Moderator: General Moderators
Strategy Pattern: Sample application for C++?
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'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.
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
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