Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. void Liste::adjq(int a)
  2. {
  3. Cellule *aux;
  4. aux=new Cellule;
  5. aux->setInfo(a);
  6. Cellule* temp=header;
  7. if (!estVide())
  8. {
  9. while (temp->getSuivant()!=NULL)
  10. {
  11. temp=temp->getSuivant();
  12. }
  13. temp->setSuivant(aux);
  14. }
  15. else
  16. header=new Cellule;
  17. header->setSuivant(aux);
  18. header->setInfo(NULL);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement