c++ storing a pointer to an object in a node of BST
<p>a pointer to a car object (which contains my data) is stored in my node of the BST. </p>

<p>car base class has derived classes electric, petrol and diesel</p>

<p>how can I search for a car of a particular type in the tree with a key from this object pointer? What needs to be included in the car.cpp?</p>

<pre><code>struct node
{

Car *ptr
node *left
node *right

}
</code></pre>
