GenericListNode.h
From Giona
(Difference between revisions)
Line 1: | Line 1: | ||
<pre> | <pre> | ||
- | #ifndef | + | #ifndef _GENERICLISTNODE_H |
- | #define | + | #define _GENERICLISTNODE_H |
+ | |||
+ | #include <cstdlib> | ||
typedef int* genericListElemT; | typedef int* genericListElemT; | ||
Line 20: | Line 22: | ||
}; | }; | ||
#endif /*GENERICLISTNODE_H_*/ | #endif /*GENERICLISTNODE_H_*/ | ||
+ | |||
</pre> | </pre> | ||
[[Category:Codice Sorgente]] | [[Category:Codice Sorgente]] |
Revision as of 11:32, 13 December 2007
#ifndef _GENERICLISTNODE_H #define _GENERICLISTNODE_H #include <cstdlib> typedef int* genericListElemT; class GenericListNode { public: GenericListNode(); virtual ~GenericListNode(); void setNext(GenericListNode *next); GenericListNode* getNext(); void setElem(genericListElemT elem); genericListElemT getElem(); private: genericListElemT elem; GenericListNode *next; }; #endif /*GENERICLISTNODE_H_*/