class X{
public:
string name;
void Capture();
void Print();
};
class List{
public:
Lista *top,*next;
X data;
void insert(X obj);
};
void List::insert(X obj){
ptr=new List;
ptr->data=obj;
if(tam==0){
ptr->next=NULL;
top=ptr;
}
else{
ptr->next=top;
top=ptr;
}
}
int main(){
X x;
List list;
x.Capture();
list.insert(x);
return 0;
I doubt you find something specific as a tutorial... but hope this helps... as far as i wrote here, the code works, but many functions missing... good luck.