/* sphereDriver.cpp tests our Sphere class variable & method.
 * ...
 ***********************************************************/

#include <iostream>
using namespace std;
#include "Sphere.h"        // now contains a destructor

int main() 
{
  for (;;)
  {
    cout << "\nEnter a positive value (0 to quit): ";
    int aValue;
    cin >> aValue;
    if (aValue < 1) break;
    Sphere aSphere;
    cout << "Inside the loop, total number of spheres is: "
         << Sphere::getNumberOfSpheres() << endl;
  }

  cout << "Outside the loop, total number of spheres is: "
        << Sphere::getNumberOfSpheres() << endl;
  Sphere sphere1, sphere2, sphere3;
  cout << "At the end, total number of spheres is: "
       << Sphere::getNumberOfSpheres() << endl;



  return 0;
}


    
    
    