1
cin.exceptions ( istream::eofbit | istream::failbit | istream::badbit );
catch (istream::failure& e)