 

//  MAIN.CC  
//  
//  Test our little ArrayOfPeople class by creating an instance of it, initializing it,
//  printing it, reversing it by using its Swap method, and the printing it again.
//  Uses ArrayOfPeople's Init, Print, and Swap methods (and the default constructor).

 
#include<iostream.h>

const NUMPEOPLE=10;

#include "arrayofpeople.cc"

             
//  Reverse the list of individuals in Everyone.

void main() 
{
       ArrayOfPeople Everyone;    //   Create an instance of the class.

       Everyone.folks[9].Print();
       cout << "\n";

       Everyone.Init();           //  ADD CODE HERE to initialize the array.

       Everyone.folks[9].Print();
       cout << "\n";
                                  //  ADD CODE HERE to print the array.

                                  //  ADD CODE HERE (e.g., a loop) that 
                                  //   reverses the array by calling swap 
                                  //   NUMPEOPLE/2 times, or by calling a 
                                  //   method like Everyone.Reverse() that
                                  //   might want to write!  

                                  //  ADD CODE HERE to print the array.

}
