Guest User

sphere.c++

a guest
Dec 10th, 2010
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include <iostream>
  2. #include "sphere.h"
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.    
  8.     sphere sph1(1,2,3,10);
  9.     sphere sph2(2,4,6,20);
  10.     sphere sph3(0,0,0,0);
  11.  
  12.     sph1.dispSphereDim();
  13.     sph2.dispSphereDim();
  14.     cout << endl;
  15.     cout << "Setting sph1 = sph2\n" << endl;
  16.     sph1=sph2;
  17.     sph1.dispSphereDim();
  18.     sph2.dispSphereDim();
  19.  
  20.     cout << endl;
  21.     cout << "Adding sph1 and sph2\n" << endl;
  22.    
  23.     sph3.dispSphereDim();
  24.  
  25.     system("pause");
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment