https://github.com/faif/expr-calc
A simple expression calculator written in C++
https://github.com/faif/expr-calc
Last synced: 10 months ago
JSON representation
A simple expression calculator written in C++
- Host: GitHub
- URL: https://github.com/faif/expr-calc
- Owner: faif
- License: gpl-3.0
- Created: 2012-06-06T20:48:25.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2016-05-29T20:29:48.000Z (over 9 years ago)
- Last Synced: 2025-01-15T00:43:31.150Z (12 months ago)
- Language: C++
- Size: 34.2 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
expr-calc is a simple program that I developed during an introductory C++ course. Do not expect anything advanced and fancy. The calculator does not support command line arguments and any kind of interaction in general. As is, it probably does not have any practical usability at all.
Nevertheless, I have decided to publish it because it exposes some nice C++ features. For instance, it demonstrates how to:
* Split code into header and source files
* Use namespaces properly (avoid the lazy and dangerous using namespace std syntax)
* Create interfaces using pure virtual methods
* Use class inheritance to facilitate code sharing
* Create simple makefiles for making project compilation fast and easy