This project is a command-line calculator written in C.
It reads mathematical expressions from text files and evaluates them according to standard arithmetic rules.
Name: Edasu Yadık
Student ID: 231AEB028
University: Riga Technical University (RTU)
Course: Programming Languages (C Lab)
- Supports addition (+), subtraction (-), multiplication (*), division (/), and power (**)
- Handles parentheses correctly
- Detects invalid expressions and division by zero
- Can process a single input file or all .txt files in a directory
- Automatically creates output files with the student’s name and ID
gcc -std=c11 -O2 -Wall -Wextra -o calc calc.c -lm