Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
class Member {
private:
void *data;
Member *prev,*next;
public:
Member(){
data = NULL; // other initializing
};
~Member()
{ if (data)
delete data;
};
// some functions
};
class Container {
private:
Member *first,*last;
public:
Container(); //... initialization code
~Container() {
Member *it;
for (it = first; (it != NULL); it = it->next)
delete it;
};
};
member = NULL; // somewhere in the code...
container->first = member;
member = NULL; // somewhere in the code...
container->setFirst(member);
// and then, in the container implementation:
Member * Container::setFirst(Member * node)
{ Member ret = node;
if (node)
{ ret = first;
first = node;
}
return ret;
}