Destructors and constructors
<p>Would someone please explain to me why I get an "Error: not declared in this scope?"</p>

<p>num and denom are private members of class Rationalnumber.</p>

<p>Thanks!</p>

<pre><code>Rationalnumber::Rationalnumber(){
num = 0;
denom = 1;
int * n = new int;
int * d = new int;
*n = num;
*d = denom;
}

Rationalnumber::~Rationalnumber(){
delete n;
}
</code></pre>
