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
883 B
53 lines
883 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 2 */
|
|
|
|
typedef struct
|
|
{
|
|
char ville[30];
|
|
char departement[30];
|
|
int decisionAdmission;
|
|
int decisionCandidat;
|
|
} Choix;
|
|
|
|
typedef struct maillonChoix
|
|
{
|
|
Choix choix;
|
|
struct maillonChoix *suiv;
|
|
} MaillonChoix, *ListeChoix;
|
|
|
|
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
|
|
float tabNotes[5];
|
|
int nbChoix;
|
|
ListeChoix lChoix;
|
|
} Etudiant;
|
|
|
|
enum(tabNotes)
|
|
{
|
|
maths,
|
|
francais,
|
|
anglais,
|
|
spe,
|
|
moy
|
|
}; |