Spec de la pile : PILE/pile.h modifié
This commit is contained in:
parent
bb786733cf
commit
1b24e9c9dc
1 changed files with 19 additions and 0 deletions
19
PILE/pile.h
19
PILE/pile.h
|
@ -0,0 +1,19 @@
|
|||
#ifndef PILE_H
|
||||
#define PILE_H
|
||||
|
||||
struct cell {
|
||||
int val;
|
||||
struct cell * suiv;
|
||||
};
|
||||
|
||||
struct pile {
|
||||
int taille;
|
||||
struct cell * deb;
|
||||
};
|
||||
|
||||
void init(struct pile ** une_pile);
|
||||
int pop(struct pile * une_pile);
|
||||
void push(int e, struct pile * une_pile);
|
||||
void print(struct pile une_pile);
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue