// IOVec.h
// Name:  Gary T. Leavens
// TA:    Bjarne Stroustrup
// Section:  A1

extern void InputVec( int vec[], int& size, int max );
  // PRE: max >= 0 && 0..max-1 is a legal index of vec && only integers on cin
  // MODIFIES: cin, size, vec[0..max-1]
  // POST: 0 <= size <= max, size integers have been read from cin, and
  // for each 0 <= i < size, vec[i] contains the (i+1)th value read from cin,
  // and either max elements were read from cin or EOF was reached.

extern void OutputVec( const int vec[], int size );
  // PRE: 0 <= size && 0..size-1 is a legal index of vec
  // MODIFIES: cout
  // POST: for each 0 <= i < size, vec[i] is added to cout followed by
  // a newline, and if i+1 < size, then vec[i] preceeds vec[i+1]
