// set1.cpp    Demonstration of SetOfIntegers class
// P. Conrad 11.08.2004  P. Conrad for CISC181


#include <iostream>
using namespace std;


#include "setOfIntegers.h"


int main(void)
{

  SetOfIntegers s; // declare an empty set

  cout << "Here is set S, which should be empty: "; s.print(); cout << endl;

  cout << "Now I'll test the result of s.isEmpty: ";

  cout << ( (s.isEmpty())?"s is empty":"s is not empty" )<< endl;



  // @@@ show error that results when you forget the () on the member function
  // isEmpty...

  // @@@ show error that results when you don't put ( ) around the
  // expression with the ternary operator

  // cout << ( (s.isEmpty())?"s is empty":"s is not empty" )<< endl;


  // cout << (s.isEmpty())?"s is empty":"s is not empty" << endl;

  s.addToSet(2);

  s.addToSet(3);

  cout << "Now I've added 2 and 3 to the set; it should be {2, 3} now: "; 
  s.print(); cout << endl;






}

