IFD:Acoustic Interfaces/introduction to c++: Difference between revisions

From Medien Wiki
No edit summary
No edit summary
Line 86: Line 86:
          
          
         p2d1_ptr->print();
         p2d1_ptr->print();
       
         Point2D* point_ptr_Array[3] = {p2d1_ptr, p2d2_ptr, p2d3_ptr };
         Point2D* point_ptr_Array[3] = {p2d1_ptr, p2d2_ptr, p2d3_ptr };
       
         cout << "pointer address: " << point_ptr_Array[0] << "x component of the point at that address: " << point_ptr_Array[0]->getX()  << endl;
         cout << "pointer address: " << point_ptr_Array[0] << "x component of the point at that address: " << point_ptr_Array[0]->getX()  << endl;
          
          
         return 0;
         return 0;
     }
     }