#include <iostream>
using namespace std;

class Test
{
  public:
    Test( int value = 0 )
     : x( value ) 
    {   } 
    void print() const{
      cout << "        x = " << x;                                                            
      cout << "\n this->x = " << this->x;                              
      cout << "\n(*this).x = " << ( *this ).x << endl;   
    } 
  private:
    int x;
}; // end class Test
 
  main()
  {
     Test testObject( 12 ); // instantiate and initialize testObject

     testObject.print();
     system("pause");
  } // end main
