•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 456,602 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,499 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 499 | Replies: 1
![]() |
ok guys... so here's a nice one...
suppose i have a matematical expression with variables less than 10 and greater than 0... and i divide the mathematical expression in leaves and nodes, being the operands the leaves and the operators the nodes...
something like this:
hope you understand it...
the problem is: the mathematical expression must be input by the user, and the program must break it down... and at the end it must show the result...
suppose i have a matematical expression with variables less than 10 and greater than 0... and i divide the mathematical expression in leaves and nodes, being the operands the leaves and the operators the nodes...
something like this:
(w+x)*(y-z)
*
/ \
+ -
/ \ | \
w x y zhope you understand it...

the problem is: the mathematical expression must be input by the user, and the program must break it down... and at the end it must show the result...
-->sometimes i wanna take my toaster in a bath<-- •
•
•
•
the problem is: the mathematical expression must be input by the user, and the program must break it down...
When the string is validated, you can convert it to reverse polish notation and build the expression tree from that.
The truth does not change according to our ability to stomach it.
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Starting Python (Python)
- memory management in wndows 2000 (Windows NT / 2000 / XP / 2003)
- Mathematical expression reducing algorithm (C++)
- Binary to list (C)
- calllculate time complexity (Computer Science and Software Design)
- Trying to find a better way to generate random numbers in Dev Pascal (Pascal and Delphi)
Other Threads in the C++ Forum
- Previous Thread: table
- Next Thread: how to call C# method in C++



Linear Mode