Calculating nested formulas (Strategy design pattern)
Posted on 2005-05-05
I need some help on this problem.
I want to add this feature to a c++ spread-sheet program. Where the user can add formulas (avg...) to a library, and create new formulas from scratch or a combination of the existing library.
And a function that takes the nested formula apart, and calculates it.
When implementing multiple formulas I thought that is would be useful to use the Strategy design pattern.
But as a newcomer to c++, I have little idea how to effectively transform this and add the design pattern. Asking, Experts for help, please.