linked-lists/main.cpp

23 lines
399 B
C++

#include <iostream>
#include "lista.cpp"
using namespace std;
int main(int argc, char **argv) {
Lista Eduardo;
Eduardo.AddNodeToEnd(1);
Eduardo.AddNodeToEnd(2);
Eduardo.AddNodeToEnd(3);
Eduardo.DeleteNode(5);
Eduardo.PrintLista();
Eduardo.AddNodeToStart(98);
Eduardo.PrintLista();
Eduardo.DeleteNodeByPosition(60);
Eduardo.PrintLista();
return 0;
}