31 lines
493 B
C++
31 lines
493 B
C++
#ifndef LISTA_H
|
|
#define LISTA_H
|
|
|
|
/**
|
|
* @todo write docs
|
|
*/
|
|
class Lista
|
|
{
|
|
private:
|
|
typedef struct node {
|
|
int data;
|
|
node* next;
|
|
}* nodePtr;
|
|
|
|
nodePtr head;
|
|
nodePtr current;
|
|
nodePtr temp;
|
|
|
|
public:
|
|
Lista();
|
|
void AddNodeToEnd ( int data );
|
|
void DeleteNode ( int data );
|
|
void PrintLista();
|
|
void AddNodeToStart (int data);
|
|
void DeleteNodeByPosition (int position);
|
|
int CountNodes();
|
|
void FindNode (int data);
|
|
};
|
|
|
|
#endif // LISTA_H
|