SHARE
TWEET

Untitled

a guest Dec 9th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top