// draw1.cpp   A main program that uses my drawing library
// P. Conrad   Fall 2004, CISC181


#include <iostream>
#include <fstream>
#include "drawings.h"
using namespace std;

int main(void)
{

  writeGnuplotFile("drawHouses.gnuplot", 
		   "drawHouses.dat",
		   "drawHouses.png",
		   20.0, 20.0);

  ofstream outfile("drawHouses.dat",ios::out); 

  if (!outfile)
    {
      cerr << "Couldn't open file; sorry!" << endl;
      exit(-1);
    }

  outfile << "# Draw a neighborhood of houses... " << endl;

  for(int x=1; x<10; x+=3)
    { 

      for(int y=2; y<9; y+=4)
	{ 
	  drawHouse(outfile, x, y, 3, 2); 
	}
      
    }



  outfile.close();

  return 0;
  
}
