Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Can I display mathematical expression.

Status
Not open for further replies.

MarioAM

Programmer
Jun 12, 2002
1
ID
How can I display a handwritten-like mathematical expression using Visual C++/MFC (just like the one in MAPLE/MATHEMATICA) ?

I have tried with CEditView And CRichEditView but still doesn't work...
 
What exaclty are you trying to do? Does the user input numbers and operations? If so, you need to parse the string and determine how to calculate the answer. The best approach I have seen uses 2 stacks, one for the numbers and one for the opperations. Just push em on and pop em off to do your calcuations. Also, keep in mind the order of operations... you MAY need to do a double pop on the op stack

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top