char c='b'; int i=c; and that would give the ascii code of the letter b. So far so good.
www.cplusplus.com