title: C++ equivalent to Java this
body: <p>In Java you can refer to the current object by doing: <code>this.x = x</code>. How do you do this in C++? </p>
  
  <p>Assume that each of these code examples are part of a class called <code>Shape</code>.</p>
  
  <p>Java:</p>
  
  <pre><code>public void setX(int x)
  {
  this.x = x;
  }
  </code></pre>
  
  <p>C++:</p>
  
  <pre><code>public:
  void setX(int x)
  {
  //?
  }
  </code></pre>