Just use cout to output.
For character variables or constant c, directly cout<For examplecout << (int) c;
For example
cout << (int) c;