how to pass "this" in c++
<p>I'm confused with the keyword "this" in C++, i'm not sure that if i'm doing the right thing by passing "this". Here is the piece of code that I'm struggling with:</p>

<pre><code>ClassA::ClassA( ClassB &amp;b) {

    b.doSth(this);
    // trying to call b's routine by passing a pointer to itself, should i use "this"?
}

ClassB::doSth(ClassA * a) {
       //do sth
}
</code></pre>
