|
|
Invisible wrote:
> At present, I haven't figured out how to convert a string to an integer
> yet, so this "calculator" is pretty much useless. I'm sure it'll be
> explained later in the tutorial.
The tutorial recommends the C function atoi() - which, being a C
function, is about as user-friendly as Windows 2. Much hair-pulling
involving pointers ensues.
(It turns out that you can assign a string to a char*, but not the
reverse. Go figure. Anyway, the solution is simple enough...)
Post a reply to this message
|
|