#include using namespace std; const char QUIT_CHAR{'Q'}; int main() { char middleInitial{'M'}; char oldStyle = 'M'; char c{'a'}; int asciiValue; while (c != QUIT_CHAR) { cin >> c; asciiValue = static_cast(c); cout << "The character '" << c << "' has ascii value " << asciiValue << endl; } //asciiValue = static_cast("hello world"); cout << endl << endl; c = 'a'; while (c <= 'z') { cout << c; ++c; } cout << endl; cout << endl << endl; asciiValue = 97; while (asciiValue <= 122 ) { c = static_cast(asciiValue); cout << c; ++asciiValue; } cout << endl; return 0; }