Résultat du TP en C sur Forth
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pile.h 500B

123456789101112131415161718192021222324252627
  1. #ifndef PILE_H_
  2. #define PILE_H_
  3. #include "num.h"
  4. struct List {
  5. struct NumContainer i;
  6. struct List* next;
  7. };
  8. struct Pile {
  9. struct List* l;
  10. unsigned int height;
  11. };
  12. void init( struct Pile* p );
  13. void push( struct Pile* p, struct NumContainer i );
  14. struct NumContainer top( struct Pile* p );
  15. void print( struct Pile* p );
  16. void pop( struct Pile* p );
  17. void end( struct Pile* p );
  18. void getlastnums( struct NumContainer* i, struct NumContainer* j, struct Pile* pile);
  19. #endif // PILE_H_