cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Extracting tokens from a string expressi
Extracting tokens from a string expression.
Jun 4, 2012 at 2:45pm UTC
newbieCplusplus
(1)
Hello,
I want to evaluate a fraction expression, but before I need to extract each operator and operand and pop it on queue.
Say, I have
Fraction f(
"1-(-5) * 16+10/ 7"
);
so I need to extract 1 - -5 ( ) * 16 + 10 / 7
How can I do it, Please help me.
Topic archived. No new replies allowed.