sophuwu.site > termcalc
wtf
sophuwu sophie@skisiel.com
Sun, 23 Jun 2024 09:49:23 +0200
commit

c252978f8bf71bc97a052afaae4c81cbe3f18e17

parent

d9babb0c3a4cdc82903a38d523ec8189e2992753

5 files changed, 32 insertions(+), 3 deletions(-)

jump to
M .gitignore.gitignore

@@ -1,3 +1,10 @@

-calc -calcStatic -termcalc +**/* +!**/*/ +!**/*.cpp +!**/*.c +!**/*.h +!**/*.hpp +!**/Makefile +!**/README.md +!**/.gitignore +!src/**/*
A Makefile

@@ -0,0 +1,14 @@

+NAME := termcalc + +CXX := g++ -std=c++17 +SRC := src/*.cpp +TARGET := $(NAME) + +all: $(TARGET) + +$(TARGET): $(SRC) + $(CXX) -o $(TARGET) $(SRC) + +clean: + rm -rf $(OBJ_DIR) $(BIN_DIR) +
A README.md

@@ -0,0 +1,5 @@

+# TermCalc +A simple calculator in c/c++ that works in the terminal. + +I made this to allow me to do simple calculations in the terminal when I would cat sys hwmon files and wanted to do some quick math on the values. +It turned out to be useful and I often call it when I'm using other shells that don't have a calculator built in.
A build/.gitignore

@@ -0,0 +1,3 @@

+./* +!./ +!tmp/