#include #include "sat.h" using namespace std; sat& sat::operator=(int i) { if (i < 200 || i > 800 || i % 10 != 0) { cerr << "sat can't contain " << i << ".\n"; exit(EXIT_FAILURE); } n = i; return *this; } istream& operator>>(istream& istr, sat& s) { int i; //uninitialized variable if (istr >> i) { //if (istr.operator>>(i).operator void *()) { s = i; //s.operator=(i); } return istr; }