Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

A basic command line calculator made with C++ (supporting only 2 numbers at a time). This was mainly made for me to explore coding in C++.

Notifications You must be signed in to change notification settings

rishaank/cli-calculator-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Basic CLI C++ Calculator

DEPRECEATED

This is a basic Command-line Calculator made with C++. More information can be found here

Logo

Installation

Installation is simple.

Windows installation

  1. Go to releases and download the installer .exe and follow the steps on your screen.

  2. Note that Windows or your browser might detect this as an "unsafe file" but this file is completely safe. You can just ignore these messages. Windows detects it as an unsafe file because it has an "unknown publisher".

MacOS installation

  1. Go to releases and download the .zip file which has 'Mac' in its name.
  2. To run it you have to extract the zip file (preferably by Archive utility) and run the file inside.
  3. There will be another folder which says: Calculator Contents, which you do not need to run it. If you are on another PC platform (this program is designed for computers), you need to download the .cpp file and manually compile it.

Uninstalling

Windows

To uninstall on Windows you can use the uninstaller to uninstall the app like any other app. Uninstalling instructions are below.

  1. Open control panel by searching for it in search and opening it.
  2. On the top click View by then select Category.
  3. Click Uninstall a program on the bottom left corner of the window.
  4. Find CLI-Calculator and click uninstall on the top.
  5. Confirm that you want to uninstall and the program will be uninstalled.

Other Platforms (including MacOS)

On any other platform, like MacOS, just delete all the files you installed, for example, on MacOS if I installed the zip file on my desktop and extracted it, to uninstall it I would delete the zip file and its extracted contents.

Editing

To edit this file on any PC platform you need to have an application which can open .cpp files such as Dev-C++ (click the name to go to the installation webpage) (Dev-C++ is currently not compatible with MacOS so you can use other apps like Xcode. I used Dev-C++ and Xcode when making this program.

Help

The commands to use this calculator are below:

p - addition

m - multiplication

s - subtraction

d - division

q - quit

c - clear screen

Note that this calculator supports only 2 numbers at a time and it is not meant for negative, fraction, or decimal numbers or any other complicated things. This is just a basic number calculator.

You can help me improve by giving me feedback (Click to give feedback)

About

A basic command line calculator made with C++ (supporting only 2 numbers at a time). This was mainly made for me to explore coding in C++.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages