Skip to content

Help me please, Calculation Code

ali j

Asked Mar 30, 2006, 5:22 PM EST1 answer
Share
LinkedInX
hi
I'm trying to write a code in C++ which implement a class that performs simple
calculations. The class will expose a single public method which takes in a string and returns a
double value that is the result of evaluating the expression stored in the string. If the string does
not contain a valid expression, the method should throw a string exception.

any one knows how to do it? please

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Sorry to say it... But you posted this in the wrong forum... This is a C# forum... Not a C++ forum...
    0