View Single Post
  #1 (permalink)  
Old October 2nd, 2005, 10:38 PM
vtvb vtvb is offline
Registered User
 
Join Date: Sep 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Convert a char to int!!!!??

why will this not work:

char x = '9';
int b;

b = int(x);




i get 57 not 9.

Reply With Quote