// program exploring input stream states #include #include using namespace std; void stat()//output state of cin { cout << "State="<< hex << cin.rdstate() <<"(hex): " << "The Good="<>ch; stat(); return 0; }