using namespace std;
int main ()//function main starts
char c = 'A';
int x = static_cast<char>(c); // Look ma! No cast!
cout << "The character '" << c << "' has an ASCII code of " << x << endl;
The character 'A' has an ASCII code of 65