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.
38 lines
741 B
38 lines
741 B
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <stdbool.h>
|
|
|
|
|
|
typedef struct maillondept {
|
|
char departement[30];
|
|
int nbPlaces;
|
|
char nom[30];
|
|
struct maillondept* suiv;
|
|
}MaillonDept;
|
|
|
|
|
|
typedef MaillonDept* ListeDept;
|
|
|
|
typedef struct {
|
|
char ville[30];
|
|
ListeDept idDept;
|
|
}VilleIUT;
|
|
|
|
ListeDept creerListeDept(void);
|
|
|
|
ListeDept ajouterEnTeteDept(ListeDept l, char* dept, char* nom, int nbP);
|
|
|
|
ListeDept insererDept(ListeDept l, char *dept, char *nom, int nbP);
|
|
|
|
void affichageListeDept(ListeDept l);
|
|
|
|
VilleIUT lireVille(FILE *flot);
|
|
|
|
ListeDept traiterDept(ListeDept l, FILE *flot);
|
|
|
|
VilleIUT** chargementVille(char* nomFich, int tphys, int* tailleL);
|
|
|
|
ListeDept supprimerDept(ListeDept l, char *code);
|
|
|