*nix C++ calculator