Well, I decided to try some FAQ tutorials I hadent been able to understand before. Namely, linked lists and binary trees. I'm on linked lists at the moment, I read through it, and decided I wanted to make a wrapper class for my list, so I could acess list elements from within a class.
But, I've never used structs... Ever. Only classes. So, I'm quite confused as to how to access a struct element from inside a wrapper class:
Code:
#define Next 4
#define Prev 8
#define Previous 8
typedef struct element *Wha;
struct Wha {
Wha prev;
Wha next;
int clams;
};
class WhaWrapper {
private:
Wha Confusing;
public:
WhaWrapper();
WhaWrapper(int I) {;} //I want to set the int clams from here in the Wha class.
};
Thanks for your help!