calculator (Windows) - library API 1.1.1
calculator - Libraries
Loading...
Searching...
No Matches
Functions
calculatorapp.cpp File Reference

A simple program to demonstrate the usage of the calculator library. More...

#include <iostream>
#include <stdexcept>
#include <string>
#include "../../calculator/header/expressionParser.h"
Include dependency graph for calculatorapp.cpp:

Functions

int main ()
 

Detailed Description

A simple program to demonstrate the usage of the calculator library.

Reads one infix expression from standard input, parses and evaluates it with Coruh::Calculator::ExpressionParser (library code, unit tested under src/tests/calculator), and prints the result. All expression parsing logic lives in the calculator library, not here, so it can be unit tested.

Function Documentation

◆ main()

int main ( )