hi guys,
I wonder how to convert a string to mathematical equation so that my program can make use of the string as and C++ programming language mathematical equation to perfrom mathematical operations. Thanks you in advance.
hi guys,
I wonder how to convert a string to mathematical equation so that my program can make use of the string as and C++ programming language mathematical equation to perfrom mathematical operations. Thanks you in advance.
what do you mean?
like if someone types in 3+4 into a string, then the program seperates the numbers and the operator then does the math?
Show us your progress.
yup like thatOriginally Posted by JoshR
It depends on what operators and functions you want to support. Would you want just the four basic binary operators, or would you want "unary" operators as well, as in sin 5 and 5 !
it should cover all the linear equation's needs operation susch as -+*/, sin, cos, tan, abs, .... etc if can whatever math functions provided by math.h
an example of what you need
http://www.brpreiss.com/books/opus5/html/page264.html
and a practical simple visualization
http://web.engr.oregonstate.edu/~min...pressTree.html
for more and more
http://www.google.com/search?hl=en&q...SION%2BTREE%22