**Bold Text Here* what is the code for performing mathematic calculation based on BODMAS rule in C*(such as 6+6/2=9) ,any suggestion ,plz??

Lucaci Andrew commented: duplicate thread: http://www.daniweb.com/software-development/c/threads/426230/calcultor +0

Recommended Answers

use this wiki page that i gave you there is stack implementation algorithm, then post code and someone will help you

Jump to Post

All 7 Replies

You can convert the equation into postfix or prefix format n then solve the equation.

Bold Text Here#sry ! i didn't get it ,can u elaborate abit more

here is the guy who added code to help other Click Here
this is related article maybe, dont know your level and what you whant really though. Can you describe what you whant to do ? What your program must do

also this wiki it even has algorithm :)

i need write a program that should check the equation and process it a/c to BODMAS method in C

use this wiki page that i gave you there is stack implementation algorithm, then post code and someone will help you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.