Professional Documents
Culture Documents
Single Ins Del
Single Ins Del
class Node{
public:
int data;
Node* next;
};
return 0;
}
}
return 0;
}
int main() {
Node* head=NULL;
append(&head,1);
append(&head,3);
push(&head,0);
insertafter(&head,2,2);
append(&head,5);
insertafter(&head,4,4);
delt(&head,6);
insertafter(&head,10,4);
delt(&head,6);
printList(head);
return 0;
}