Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "sphere.h"
- using namespace std;
- int main() {
- sphere sph1(1,2,3,10);
- sphere sph2(2,4,6,20);
- sphere sph3(0,0,0,0);
- sph1.dispSphereDim();
- sph2.dispSphereDim();
- cout << endl;
- cout << "Setting sph1 = sph2\n" << endl;
- sph1=sph2;
- sph1.dispSphereDim();
- sph2.dispSphereDim();
- cout << endl;
- cout << "Adding sph1 and sph2\n" << endl;
- sph3.dispSphereDim();
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment