Advertisement
Guest User

Untitled

a guest
Jan 14th, 2014
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. class Nodo{
  2. private:
  3. int NodoID;
  4. char Colore[20];
  5. public:
  6. Nodo();
  7. Nodo(int);
  8. int GetID();
  9. void SetID(int);
  10. void SetColore(char*);
  11. char *GetColore();
  12. };
  13.  
  14. char* Nodo :: GetColore(){
  15. return Colore;
  16. }
  17.  
  18. void Nodo :: SetColore(char *colore){
  19. strcpy(Colore, colore);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement