1 /**********************************
2 * test of the location class *
3 **********************************/
8 Location a,*b,c(4,4,6,8);
12 cout << "Location of a " << a << ".\n" << "Location of c " << c << ".\n";
13 b = new Location ( 5,5 );
14 cout << "After creation, Location of b is " << *b << ".\n";
16 cout << "After modification, Location of b is " << *b << ".\n";
19 cout << "After modification of A , and tabbing, Location of a is " << a << ".\n";
21 cout << "Then Location of a is after Cr :"<< a << ".\n";
23 cout << "Location of a after Select(15) is " << a << ".\n";
25 cout << "Location of a after Select(15) is " << a << ".\n";
26 cout << "After all of this the location of a + c is " << (a + c) << ".\n";