Skip to content

A very simple command line tool to solve basic math expressions, written in c++

Notifications You must be signed in to change notification settings

csboo/calcplusplus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

CalcPlusPlus

CalcPlusPlus is a simple C++ command-line tool for solving basic mathematical expressions.

Features

  • Supports the following operations:
    • Addition (+)
    • Subtraction (-)
    • Multiplication (*)
    • Division (/)
    • Exponentiation (Power) (^)
    • Parentheses for grouping

Requirements

  • C++ compiler (e.g., g++)

Build Instructions

  1. Clone the repository:
    git clone https://github.com/csboo/calcplusplus.git
  2. Compile the code:
    g++ -o calc++ calc++.cpp

Usage

  • Display help:
    ./calc++
  • Calculate an expression:
    ./calc++ "2 + 2 * 3"

About

A very simple command line tool to solve basic math expressions, written in c++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages