Return to Snippet

Revision: 64806
at September 21, 2013 10:11 by ppbeto94


Initial Code
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;


}

Initial URL

                                

Initial Description
Para agregar al final de listas encadenadas.

Initial Title
apgregar al final de listas encadenadas

Initial Tags

                                

Initial Language
C++