sábado, 25 de agosto de 2007

Lista.cpp

#include "cstdlib"
#include "Lista.hpp"
#include "Nodo.hpp"
#include "Iterador.hpp"

using namespace std;

Lista::Lista() {
head = NULL;
it = new Iterador(this);
}

Lista::~Lista(){}

void Lista::listar_elementos() {
it = new Iterador(head);
while ( !it->IsDone() ) {
it->Current()->imprime_dato();
it->Next();
}
}

No hay comentarios.: