Hi everyone,
I'd do a search for this on google, but I have no idea what it's called, or even if it's possible.
Basically, what I would like to do is take a class like this:
class INTLIST{
public:
INTLIST();
~INTLIST();
void Setting_MakeAhead(int amount);
void Unload();
void Resize(int size);
void AddItem(int n);
void RemoveItem(int index);
int *items; //containing structure
private:
bool loaded;
int make_ahead;
int s_size; //structure size (structure)
int u_size; //amount of structure being used (usage)
};
and have it when I call the class as a variable I get an item from the variable *items.
IE:
INTLIST list;
int number;
number=list[5]; //instead of number=list.items[5]
Is this possible? On second glance it doesnt appear to be, but I'd like to ask nevertheless.
Thanks
~zix~