I have some problem about how to convert char to int. For example I have number 0-9 in char then i want to convert these to number 0-9 in int. Can anyone tell me how to do it ? thank you
If it is a single digit
char aChar = '5'; int aNumber = aChar - '0';
thank a lot. ;)))
Please edit your post to use code tags. See How to use the forum.
But what is the question exactly?
how to convert char to integer.
'Q' is a char. What should the int be that 'Q' is converted to?