#include "Set.h" #include using namespace std; int main() { Set set1; cout << "Input first set (EOF to finish):\n"; cin >> set1; Set set2; cout << "Input second set (EOF to finish):\n"; cin.clear(); cin >> set2; Set set3 = set1 + set2; cout << set1 << " + " << set2 << " = " << set3 << endl; cout << set1 << " * " << set2 << " = " << set1 * set2 << endl; Set set4; for ( Set::ConstIterator itr = set3.begin(); itr != set3.end(); itr++ ) set4.add( *itr ); cout << set3 << " == " << set4 << ": " << set3 == set4 << endl; return 0; }