RE: Decoder
Alex Blanchette wrote:
> Okay, I know I'm probably starting to get annoying but I learn better
> through
> person to person help, I understand the program where you press a key
> and it
> tells you the code for it and everything, but I want to make a program
> where the user inputs the code and it tells them what it means. Do not
> give
> me the full answer on how to do this, but set me in the right mind set,
> on the
> proper path, Thanks.
>
> Thy name is but a short lived word,
> Thy life is a forever ending story...
If you are referring to ASCII codes then you can print the result of a
'code' with:
puts(1,code) -- where 'code' is an integer
or if you want to get fancy:
printf(1,"ASCII code %d is '%s'\n",{code,code})
-- Brian
|
Not Categorized, Please Help
|
|