Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Lsec::eliminarNodo()
- {
- nodo *aux,*apunt2;
- char resp;
- apunt2=new nodo();
- aux=new nodo();
- aux=inicial;
- cout<<"Entre clave del nodo a eliminar"<<endl;
- cin>>apunt2->dato;
- while(aux->dato!=apunt2->dato)
- {
- aux=aux->sig;
- }
- aux->sig=apunt2->sig;
- delete apunt2;
- cout<<"Listo!!!"<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement