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.
55 lines
1.2 KiB
55 lines
1.2 KiB
//Pile
|
|
|
|
typedef struct pile
|
|
{
|
|
int tlogi;
|
|
int tmax;
|
|
int* tab;
|
|
} pile;
|
|
typedef struct pile* Pile;
|
|
|
|
//File
|
|
typedef struct file
|
|
{
|
|
Pile pEntry;
|
|
Pile pExit;
|
|
int* tab;
|
|
} file;
|
|
typedef struct file* File;
|
|
|
|
|
|
|
|
|
|
|
|
//Initialisation de fonctions :
|
|
|
|
void menu(void);
|
|
|
|
//Fonctions relatives aux listes chaînées : //
|
|
int existe(Listedep liste, char* mot);
|
|
//----------------------------------//
|
|
|
|
//Fonctions relatives aux piles : //
|
|
Pile creerpile(int tmax); //
|
|
//
|
|
void empiler(Pile p, int x); //
|
|
//
|
|
void afficherPileEntier(Pile p); //
|
|
//
|
|
int depiler(Pile p); //
|
|
//----------------------------------//
|
|
|
|
//Fonctions relatives aux files : //
|
|
File creerfile(int tmax); //
|
|
//
|
|
void enfiler(File f, int x); //
|
|
//
|
|
void afficherFileEntier(File f); //
|
|
//
|
|
int defiler(File f); //
|
|
//
|
|
void vider_file(File f); //
|
|
//----------------------------------//
|
|
|
|
void reset(void);
|