Update calc.cpp

now robust handling of whitespace in input, and also negative and multidigit numbers.
todo: handle exceptions such as undefined commands?