// IOStuff.C

#include "IOStuff.h"

istream& operator >> (istream & in, String& s)
{
  // quick and dirty
  const int SIZE = 80;
  char buf[SIZE];
  in.getline(buf, SIZE);
  s = String(buf);
  return in;
}

ostream& operator << (ostream & out, const GuestInfo & g)
{
  out << g.name << endl;
  out << " "<< g.address << endl;
  out << " room " << g.roomNumber << endl;
  out << " charges $" << g.charges << endl;

  return out;
}
