betoesquivel icon

agregar al final de la lista

betoesquivel | PRO | 09/21/13 12:09:09 AM UTC | 0 ⭐ | 284 👁️ | Never ⏰ | []
C++ |

220 B

|

None

|

0 👍

/

0 👎

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;
 
 
}

Comments