Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // studio18.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include "Calculator.h"
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- Calculator calc = Calculator();
- inFixParser *in = new inFixParser();
- //preFixParser pre = preFixParser();
- calc.setParser(in);
- string input = "10 + 20 - 5 / 5 * 10";
- cout << calc.calculate(input);
- return 0;
- }
Add Comment
Please, Sign In to add comment