Guest User

Untitled

a guest
Dec 9th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. // studio18.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5.  
  6. #include "Calculator.h"
  7. #include <iostream>
  8. #include <string>
  9. using namespace std;
  10.  
  11. int main()
  12. {
  13. Calculator calc = Calculator();
  14.  
  15. inFixParser *in = new inFixParser();
  16. //preFixParser pre = preFixParser();
  17. calc.setParser(in);
  18. string input = "10 + 20 - 5 / 5 * 10";
  19. cout << calc.calculate(input);
  20.  
  21. return 0;
  22. }
Add Comment
Please, Sign In to add comment