Hi, I am trying to overload the relational operator and compare objects from different classes.
say for instance I have:
class A{
int x;
};
class B : public A{
int y;
Type: Posts; User: teedee46
Hi, I am trying to overload the relational operator and compare objects from different classes.
say for instance I have:
class A{
int x;
};
class B : public A{
int y;
Thanks for everyone's help. I actually have it working now after hours and hours of work.
Why does this belong on the c board?
The first node in the tree is the only one that gets anything written to it.
void build_tree(int size, LIST_I data, TREE& t)
{
int ct;
for (ct = 0; ct < size; ++ct) {
//I'm having trouble inserting an array of integers into a binary
//search tree. The function below is what my last attempt at
//this looked like. Only the first node will print. Any help...