// driver.cc  P. Conrad CISC181 Spring 2006
// a simple driver program to check syntax of our class
// and to see how a class is used in a program.

#include <iostream>
using std::cout;
using std::endl;

#include "complex.h" // this means pull in the definition of Complex_C
               
// so now, I can declare variables of type Complex_C


int main(void)
{
  Complex_C c; // just like int x; or double y;

  cout << "c = ";
  c.print(); // calls the "print() member function" on object called "c"
  cout << endl;

  cout << "Now I will call c.setReal(4.0);" << endl;

  c.setReal(4.0);

  cout << "Now c = ";
  c.print();
  cout << endl;

  cout << "Now I will call c.setImag(19.0);" << endl;

  c.setImag(19.0);

  cout << "Now c = ";
  c.print();
  cout << endl;
  


  return 0;
}
