Skip to main content

Posts

Showing posts from September, 2017

BODMAS / PEDMAS calculator

Parenthetical Calculator/ BODMAS Calculator/ PEDMAS Calculator             that works according to the bracket priority.                                     Simple Algorithm. Made with using 3 modules :-                                                                         1. Expression separation 2. Post fixing Algorithm 3. Expression Evaluation Written in C++ Language Output :-- Source Code : -- #include <iostream> #include <sstream> #include <cmath> #include <string.h> using namespace std; void tellpos (string a , int &a_ )  { if (a == "+" || a == "-") { a_ = 10; ...