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.
This is a simple, lightweight Calculator that runs in the terminal. It was designed to be robust, handling basic errors gracefully without crashing.
- 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.
Since this is a standard C++ program, you can compile it with any modern compiler (like g++ or clang).
Open your terminal in the project folder and run:
g++ calculator_uop.cpp -o calculator