
-----------------------------------
unoho
Fri Apr 30, 2010 6:03 pm

converting ascii to string
-----------------------------------
hey guys, i was wondering how i could change a integer to a string

for example,, if an user enters 65, the computer would produce or output A and so on.

is there any built in function or method for it? 

basically im doing this for a puzzle type of question where you will have to decode (number to string) and i saw my friend doing like 56different cases (using switch).. so i was hoping to come up with a much efficient way rather thn typing 52 different case statements.

any help is much appriciated :)

-----------------------------------
TheGuardian001
Fri Apr 30, 2010 6:48 pm

Re: converting ascii to string
-----------------------------------
I believe simply casting the int directly to a char will work.

-----------------------------------
unoho
Sat May 01, 2010 1:13 am

RE:converting ascii to string
-----------------------------------
wwowww...that was quite simple :P

thank you very much :D:D
