C++ cin Read a character
#include <iostream> using namespace std; int main()/*from w w w. ja va 2 s . c o m*/ { char fkey; cout << "Type in a character: "; cin.get(fkey); cout << "The key just accepted is " << int(fkey) << endl; return 0; }