Skip to content

thecretanguy/cpp-cli-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

C++ CLI Calculator 🧮

Welcome to my repository! This project marks a significant milestone in my programming journey: it is my very first program written in C++.

I built this command-line tool to understand the fundamentals of the language, such as static typing, memory management basics, and standard input/output handling.

🚀 About the Project

This is a simple, lightweight Calculator that runs in the terminal. It was designed to be robust, handling basic errors gracefully without crashing.

Features

  • Basic Arithmetic: Supports Addition (+), Subtraction (-), Multiplication (*), and Division (/).
  • Input Validation: Ensures the user enters valid numbers. If characters are entered, the program clears the buffer and asks again.
  • Safety Checks: Prevents division by zero errors.
  • Continuous Loop: The program runs in a loop until the user explicitly chooses to exit.

🛠️ How to Build & Run

Since this is a standard C++ program, you can compile it with any modern compiler (like g++ or clang).

1. Compile

Open your terminal in the project folder and run:

g++ calculator_uop.cpp -o calculator

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages