Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <class T>
- void Lista<T>::AgregarAlFinal(T dato)
- {
- Nodo<T> *aux = new Nodo<T> ();
- Nodo<T> *temp = new Nodo<T> (dato);
- aux = inicio;
- while (aux->sig != NULL)
- {
- aux = aux->sig;
- }
- aux->sig = temp;
- }
Advertisement
Add Comment
Please, Sign In to add comment