inp >> c;//c now holds ascii value of first character.
/*You can output integral value using:*/
std::cout << static_cast<unsigned>(c);
/*Or just use it as integral in calculations */
c +=2; //if c was 'a' it is now 'c'
std::cout << c; //Proof
if (c == 97) //Equals to c == 'a'