TP1 TP2 DONE

已完成TP1和TP2
This commit is contained in:
2023-03-09 12:18:23 +01:00
parent d34936b229
commit 5dadd23503
15 changed files with 337 additions and 0 deletions

23
TP1/pile.h Normal file
View File

@@ -0,0 +1,23 @@
#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);