View Single Post
  #5 (permalink)  
Old 10-29-2007, 07:26 AM
MaxGuru's Avatar   
MaxGuru MaxGuru is offline
Newbie
 
Join Date: Oct 2007
Location: Bingo
Posts: 2
Rep Power: 0
MaxGuru is on a distinguished road
Send a message via AIM to MaxGuru
Thumbs up Just (Cast) It!!

i was thinking on about what you need to do .. all you need to do is cast it to an int to get the ASCII value.

ex)

Code:
 int  asciiVal = 0;

 char  letter = 'A'; 

//this will  cast to the ascii value (int) 
asciiVal = (int)letter;
This should work nice for you
Reply With Quote

Sponsored Links