diff options
Diffstat (limited to 'main.cc')
-rw-r--r-- | main.cc | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -7,15 +7,13 @@ int main() { std::string inputTerm; - std::cin >> inputTerm; // Example: 2.5*(2+3-(3/2+1)) - - SimpleParser::Parser parser; + std::cin >> inputTerm; try { typedef std::numeric_limits<double> dbl; std::cout.precision(dbl::digits10); - std::cout << parser.calculate(inputTerm) << std::endl; + std::cout << SimpleParser::calculate(inputTerm) << std::endl; } catch ( std::exception &e ) { |