Re: Convert ASCII code to equivalent numerical value

new topic     » goto parent     » topic index » view thread      » older message » newer message

Sorry Pete, but I have not been able to find out what you mean.

key -= 48

may be wrong, but it worked very well.

prompt_number()

is a big improvement, but the love of god did not help me understand

key -= '0'

In my case, would that have been

key -= '48'

If so, the purpose of the single quote is not obvious to me.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu