# Calculator **Repository Path**: tangenta/Calculator ## Basic Information - **Project Name**: Calculator - **Description**: No description available - **Primary Language**: C++ - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-10-28 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Calculator ## File structure: * calculator_base.h/cpp: defined a pure virtual class, implement the basic part of calculator, such as validation checking, operand parsing, and some string formating functions. * calculator.h/cpp: defined the map between char and operator; Also explain how to implement the calculate with stacks; Customize it. * calculator_exception.h: provide some exceptions related to calculating. * lexical_cast.h: support arbitrary cast for types that had overloaded *>>* and *<<* function. * oper_struct.h: contains Operator and Operand structures. Customize it if you need. * control.h: a demo. It shows a truth table of logic staments. * main.cpp: just the same as your imagination.