#include "point.h"

struct Quad
{
  char label;
  point *vert;
};

int main()
{
  // Create quadrilateral S
  Quad S;
  S.vert = new point[4];

  // Read label and vertices
  cout << "Enter label and 4 vertices: ";
  cin >> S.label;
  for(int i = 0; i < 4; i++)
   read(S.vert[i], cin);

  // Write label and vertices
  cout << "Your quadrilateral is " << S.label << " ";
  for(int j = 0; j < 4; j++)
  {
    write(S.vert[j], cout);
    cout << ' ';
  }
  cout << endl;

  return 0;
}