langage_C/TP1/pile.h
MAO Dongyang 5dadd23503
TP1 TP2 DONE
已完成TP1和TP2
2023-03-09 12:18:23 +01:00

23 lines
445 B
C

#ifndef TP1_PILE_H
#define TP1_PILE_H
#endif //TP1_PILE_H
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define TAILLE_PILLE 1024
#define TAILLE_CHAINE 1024
struct Pile{
char stack[TAILLE_PILLE][TAILLE_CHAINE];
int pos;
};
struct Pile* pileInit();
char* pilePop(struct Pile *pile);
void pilePush(struct Pile *pile, char *string);
char* pileTop(struct Pile *pile);
int pileSize(struct Pile *pile);