TP1 TP2 DONE
已完成TP1和TP2
This commit is contained in:
23
TP1/pile.h
Normal file
23
TP1/pile.h
Normal 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);
|
||||
Reference in New Issue
Block a user