char to int in c++

char character = '7'; int number = character - '0';