Update calc.cpp

again modified