//char1.cpp //Csci 107 Laura Toma //characters in C++ and ASCII codes //In C++ (and in general in any programming language) each character //is represented as an integer value. The standard scheme is called //ASCII. ASCII is an international standard for representing //characters. The ASCII code of a chracter is an integer between 0 and //255. However, only numbers 32 to 126 have been assigned so far o //printable characters. The remaining numbers are either unnassigned //or are used for control characters such as tab and return. //The following program gives you the ascii code of a character tat you type #include int main() { char c; char again = 'y'; while (again == 'y') { cout << "Type in a character and I'll tell you its ASCII code: "; cin >> c; cout << "you typed char=" << c << " it's ascii code is " << (int)c << endl; cout << "again? (y/n)" << endl; cin >> again; } return 1; }