-
Conversion matter
Hi
I ve got an issue with my calculator programme. The calculator is not in cosole but in window by the way.
Anyway I do not know how to get the value which is typed in the display window so the computer understands the number and is able to work with it.
The instruction I am looking for is some kind of of course some instruction which works for ints...
Or another choice could be to convert the number from string to an int?
of course this does not work in way from string to int.
Do you have any ideas how to solve this?
In general the only problem is that I am not able to get the displayed number as an int but as a string which does not work so well for calculator does it?
-
This might help you:
http://msdn2.microsoft.com/en-us/library/ms645485.aspx
Alternatively you can get it as a string, and then call atoi(), or perhaps more preferably strtol().