Hi,
I am to write a program that can perform addition, subtraction, multiplication and division for 2 32-bit numbers.
It should ask user to input num1, num2 and the desired operation. Then it will calculate and print out the result.
The thing is, when I take user input, it's just a string of number (or ASCII digits). How can I actually perform a convertion from ASCII to number, calculate and convert back to ASCII for displaying ?
Thank you very much..
I am to write a program that can perform addition, subtraction, multiplication and division for 2 32-bit numbers.
It should ask user to input num1, num2 and the desired operation. Then it will calculate and print out the result.
The thing is, when I take user input, it's just a string of number (or ASCII digits). How can I actually perform a convertion from ASCII to number, calculate and convert back to ASCII for displaying ?
Thank you very much..