Click here to Skip to main content
15,900,108 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi,
I need help for solving a problem. If anyone could help me please sort it out and reply at he earliest. I was creating a console application in c# for calculating user Inputs like 67*74+52-63 by creating a C# program. If Someone knows how o do it Please help me. Give create the program for me. I will e very thankful of you.
Posted
Updated 1-Oct-12 23:59pm
v2

What you need is a mathematical expression parser. See these links for some libraries that provide this for you:
Math Parser[^]
Math Parser NET C#[^]
MathParser - Math Formula Parser[^]
Parsing Mathematical Expressions with muParser[^]
 
Share this answer
 
Comments
Gaurav Dhaka 2-Oct-12 3:16am    
These are links for applying vbodmas technique but i am stuck with handling the user inputs which is a string and how compiler will identify the integers entered and arithmetic expresions to be calculated.......
visit this article
An extensible math expression parser with plug-ins[^]
Happy Coding!
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900