parent
f91615fc79
commit
9575c11d50
@ -1,13 +1,9 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "../structures/structures.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "structures.h"
|
||||
|
||||
/* Fichier */
|
||||
int chargementVilleIUT(VilleIUT *tiut[]);
|
||||
int chargementVillesIUT(VilleIUT *tiut[]);
|
||||
void affichage(VilleIUT *tiut[], int nb);
|
||||
|
||||
/* File */
|
||||
|
||||
ListeDept listenouv(void);
|
||||
int recherche(VilleIUT *tiut[], int nb, char val[]);
|
@ -0,0 +1,21 @@
|
||||
#include "partie1.h"
|
||||
|
||||
ListeDept listenouv(void)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ListeDept insererEnTete(ListeDept l, char departement[], int nbP)
|
||||
{
|
||||
MaillonDept *m;
|
||||
m = (MaillonDept *)malloc(sizeof(MaillonDept));
|
||||
if (m == NULL)
|
||||
{
|
||||
printf("Fonction insererEnTete : problème malloc");
|
||||
exit(1);
|
||||
}
|
||||
strcpy(m->departement, departement);
|
||||
m->nbP = nbP;
|
||||
m->suiv = l;
|
||||
return l;
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
typedef struct maillonDept
|
||||
{
|
||||
char departement[30];
|
||||
int nbP;
|
||||
char resp[30];
|
||||
struct maillonDept *suiv;
|
||||
} MaillonDept, *ListeDept;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char ville[30];
|
||||
ListeDept ldept;
|
||||
} VilleIUT;
|
||||
|
||||
ListeDept listenouv(void);
|
||||
ListeDept insererEnTete(ListeDept l, char departement[], int nbP);
|
Loading…
Reference in new issue