//=========================================================================== // Exception Classes for Playing Card Errors. file: bad.hpp // Exception demonstration program: March 2009 // ----------------------------------------------- Error reading input stream. #pragma once #include using namespace std; class Bad { public: char spot; char suit; //---------------------------------------------- Suit and Spot both wrong. Bad (char n, char s) : spot(n), suit(s) {}; virtual void print(){ cerr <<" Both spot value and suit are wrong\n" <<" Legal spot values are 2..9, T, J, Q, K, A\n" <<" Legal suits are H D C S\n"; pr(); } void pr(){ cerr <<" You entered "<