Advertisement
Guest User

Untitled

a guest
May 24th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #ifdef CELLULE_H
  2.  
  3. using namespace std;
  4.  
  5. template <class T> Cellule<T>::Cellule(T data)
  6. {
  7.     this->data=data;
  8.     this->next=NULL;
  9. }
  10.  
  11. template <class T> T Cellule<T>::getData()
  12. {
  13.     return data;
  14. }
  15.  
  16. template <class T> void Cellule<T>::setData(T data)
  17. {
  18.     this->data=data;
  19. }
  20.  
  21. template <class T> Cellule<T>* Cellule<T>::getNext()
  22. {
  23.     return next;
  24. }
  25.  
  26. template <class T> void Cellule<T>::setNext(Cellule* next)
  27. {
  28.     this->next=next;
  29. }
  30.  
  31. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement