|
-
Nov 2nd, 2002, 05:00 PM
#1
Thread Starter
New Member
String Formula to Integer
Hello, does anyone have information or a link to a place where I can learn how to take an entire formula written as a string, and convert it into an integer?
For example a function called Convert that takes works something like...
CString formula = "5 + 3*6 - (2+6)^5";
int x = Convert(formula);
And Convert() evaluates the entire string and returns a value.
Any help would be greatly appreciated, thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|