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.
76 lines
4.5 KiB
76 lines
4.5 KiB
//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; // //
|
|
//--------------------------// //
|
|
//------------------------------------------------------//
|
|
|
|
|
|
|
|
//Initialisation de fonctions : --------------------------------//
|
|
//
|
|
void menu(void); //
|
|
//
|
|
int loadIUT(VilleIUT** tiut); //
|
|
//
|
|
void saveIUT(VilleIUT** tiut, int tlogi); //
|
|
//
|
|
int rechercheIUT(VilleIUT* tab[],int lTab,char mot[]); //
|
|
//
|
|
//
|
|
//
|
|
//Fonctions relatives aux listes chaînées : --// //
|
|
int existeDep(MaillonDep* liste, char* dep); // //
|
|
// //
|
|
int longueurListe(MaillonDep* liste); // //
|
|
//--------------------------------------------// //
|
|
//
|
|
//
|
|
//
|
|
//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); //
|
|
//--------------------------------------------------------------//
|