#include #include #include #include "sphere.h" #include using namespace std; int main (int argc, char * const argv[]) { vector theVector; double r = 1.0, x, y, z; while(1) { cout << "Enter 0 as r to stop input" << endl; cout << "Type in r: "; cin >> r; if(r == 0) break; cout << "Type in x: "; cin >> x; cout << "Type in y: "; cin >> y; cout << "Type in z: "; cin >> z; Sphere aSphere; aSphere.setR(r); aSphere.setX(x); aSphere.setY(y); aSphere.setZ(z); theVector.push_back(aSphere); } cout << " "; for(int i = 0; i < theVector.size(); i++) { cout << setw(3) << i; } cout << endl; for(int i = 0; i < theVector.size(); i++) { cout << setw(3) << i; for(int j = 0; j < theVector.size(); j++) { if (i==j) cout<