master
parent
2cba3d3e34
commit
6ebc948a37
@ -1,54 +1,69 @@
|
||||
//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 :
|
||||
//Définition des structures : --------------------------//
|
||||
//
|
||||
//Piles : ------------------// //
|
||||
typedef struct pile // //
|
||||
{ // //
|
||||
int tlogi; // //
|
||||
int tmax; // //
|
||||
int* tab; // //
|
||||
} pile; // //
|
||||
typedef struct pile* Pile; // //
|
||||
//--------------------------// //
|
||||
//
|
||||
//
|
||||
//
|
||||
//Files : ------------------// //
|
||||
typedef struct file // //
|
||||
{ // //
|
||||
Pile pEntry; // //
|
||||
Pile pExit; // //
|
||||
int* tab; // //
|
||||
} file; // //
|
||||
typedef struct file* File; // //
|
||||
//--------------------------// //
|
||||
//------------------------------------------------------//
|
||||
|
||||
void menu(void);
|
||||
|
||||
//Fonctions relatives aux listes chaînées : //
|
||||
int existe(Listedep liste, char* mot);
|
||||
//----------------------------------//
|
||||
|
||||
//Fonctions relatives aux piles : //
|
||||
Pile creerpile(int tmax); //
|
||||
//Initialisation de fonctions : ------------------------//
|
||||
//
|
||||
void empiler(Pile p, int x); //
|
||||
void menu(void); //
|
||||
//
|
||||
void afficherPileEntier(Pile p); //
|
||||
//
|
||||
int depiler(Pile p); //
|
||||
//----------------------------------//
|
||||
|
||||
//Fonctions relatives aux files : //
|
||||
File creerfile(int tmax); //
|
||||
//
|
||||
void enfiler(File f, int x); //
|
||||
//Fonctions relatives aux listes chaînées : --// //
|
||||
int existe(MaillonDep* liste, char* mot); // //
|
||||
// //
|
||||
int recherche(MaillonDep* liste, char* mot); // //
|
||||
//--------------------------------------------// //
|
||||
//
|
||||
void afficherFileEntier(File f); //
|
||||
//
|
||||
int defiler(File f); //
|
||||
//
|
||||
void vider_file(File f); //
|
||||
//----------------------------------//
|
||||
|
||||
void reset(void);
|
||||
//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); //
|
||||
//------------------------------------------------------//
|
Loading…
Reference in new issue