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.
53 lines
972 B
53 lines
972 B
#include <string.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
/* Partie 1 */
|
|
typedef struct maillonDept
|
|
{
|
|
char departement[30];
|
|
int nbP;
|
|
char resp[30];
|
|
struct maillonDept *suiv;
|
|
} MaillonDept, *ListeDept;
|
|
|
|
typedef struct
|
|
{
|
|
char ville[30];
|
|
ListeDept ldept;
|
|
} VilleIUT;
|
|
|
|
/* Partie 3 */
|
|
|
|
typedef struct
|
|
{
|
|
char departement[30];
|
|
int decisionAdmission;
|
|
int decisionCandidat;
|
|
} Departement;
|
|
|
|
typedef struct maillonDepartement
|
|
{
|
|
Departement v;
|
|
struct maillonDepartement *suiv;
|
|
} MaillonDepartement, *ListeDepartement;
|
|
|
|
typedef struct
|
|
{
|
|
int num;
|
|
char nom[22]; // 20 caractere + 1 espace + 1 caractere de fin de chaine
|
|
char prenom[22]; // 20 caractere + 1 espace + 1 caractere de fin de chaine
|
|
int tabMatiere[4];
|
|
int nbChoix;
|
|
char ville[30];
|
|
ListeDepartement ldept;
|
|
} Admission;
|
|
|
|
typedef struct maillonAdmission
|
|
{
|
|
Admission v;
|
|
struct maillonAdmission *suiv;
|
|
} MaillonAdmission, *ListeAdmission;
|
|
|
|
|