NicolaDelPrete

Nodo sch

Dec 5th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #ifndef NODO_H_INCLUDED
  2. #define NODO_H_INCLUDED
  3.  
  4. class nodo
  5. {
  6.     int inizio;
  7.     int fine;
  8. public:
  9.     nodo(int,int);
  10.     int getinizio();
  11.     int getfine();
  12.     ~nodo(){;}
  13. };
  14.  
  15. nodo::nodo(int i,int f)
  16. {
  17.     this->inizio=i;
  18.     this->fine=f;
  19. }
  20. int nodo::getinizio()
  21. {
  22.     return this->inizio;
  23. }
  24. int nodo::getfine()
  25. {
  26.     return this->fine;
  27. }
  28.  
  29. #endif // NODO_H_INCLUDED
Add Comment
Please, Sign In to add comment