Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include "noued.h"
  2. using namespace std;
  3.  
  4. Noued::Noued(char c){
  5.     symbole=c;
  6.     filsGauche=NULL;
  7.     filsDroit=NULL;
  8. }
  9.  
  10. void Noued::setSymbole(char c){
  11.     symbole=c;
  12. }
  13.  
  14. char Noued::getSymbole(){
  15.     return symbole;
  16. }
  17.  
  18. Noued *Noued::getFilsDroit() {
  19.      return filsDroit;
  20.  
  21. }
  22. Noued *Noued::getFilsGauche(){
  23.      return filsGauche;
  24. }
  25. Noued &Noued::setFilsDroit(Noued *n){
  26.     filsDroit=n;
  27.     return(*this);
  28. }
  29. Noued &Noued::setFilsGauche(Noued *n){
  30.     filsGauche=n;
  31.     return(*this);
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement