Skip to content

dt1/horrible-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

horrible calculator

This is something I'm using to learn C++.

To run, compile using your favorite tool. The command output will look like:

welcome to horrible calculator
enter an expression or press 'e' to exit.
>>

The available operations are: +, -, *, / and this only works with integers.

An example:

welcome to horrible calculator
enter an expression or press 'e' to exit.
>> 33-3
found - at 2
33
3
calc = 30
enter an expression or press 'e' to exit.
>>

It's very easy to break:

enter an expression or press 'e' to exit.
>> cc
no operators found
(and more errors)

You probably don't want to do your taxes with this program.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages