Dijkstra30
Programmer
until now my dinamic lists were defined as follows:
typedef struct obj {
int info;
struct obj *left, *right;
};
the pointers *left, *right point to objects of the same type.
Now... I want to create a class of these kind of objects
Let's say this class look like this (if i'm not mistaken)
class Obj
{
int inf;
Obj *left, *right;
};
With this declaration I have problems accesing the next element in list;
I also have trouble with redefinig operators.
typedef struct obj {
int info;
struct obj *left, *right;
};
the pointers *left, *right point to objects of the same type.
Now... I want to create a class of these kind of objects
Let's say this class look like this (if i'm not mistaken)
class Obj
{
int inf;
Obj *left, *right;
};
With this declaration I have problems accesing the next element in list;
I also have trouble with redefinig operators.