SAE S1.02 - Comparaison d'approches algorithmiques
|
Fichier contenant les fonctions des structures de la partie 2. Plus de détails...
#include "SAE.h"
Fonctions | |
ListeChoix | listenouvChoix (void) |
Retourne une nouvelle liste vide. Plus de détails... | |
ListeChoix | insererEnTeteChoix (ListeChoix lc, Choix choix) |
Insère un choix en tête de d'une liste. Plus de détails... | |
ListeChoix | insererChoix (ListeChoix lc, Choix choix) |
Insère un nouveau choix dans une liste dans l'ordre alphabétique de la ville et du département. Plus de détails... | |
ListeChoix | supprimerEnTeteChoix (ListeChoix lc) |
supprime le choix en tête d'une liste Plus de détails... | |
ListeChoix | supprimerChoix (ListeChoix lc, Choix choix) |
Supprime un choix particulier dans une liste. Plus de détails... | |
bool | rechercheChoix (ListeChoix lc, Choix choix) |
Recherche un choix dans une liste. Plus de détails... | |
Choix | TeteChoix (ListeChoix lc) |
Retourne le choix en tête de liste. Plus de détails... | |
bool | videChoix (ListeChoix lc) |
Vérifie si une liste est vide. Plus de détails... | |
void | afficherChoix (ListeChoix lc) |
Affiche tous les choix d'une liste. Plus de détails... | |
int | longueurChoix (ListeChoix lc) |
Retourne la longueur d'une liste de choix. Plus de détails... | |
void | afficherCandidatsChoix (Choix choix) |
Affiche un choix. Plus de détails... | |
char * | getDeptChoix (ListeChoix lc, int pos) |
Retourne le département d'un choix. Plus de détails... | |
char * | getVilleChoix (ListeChoix lc, int pos) |
Retourne la ville d'un choix. Plus de détails... | |
void | setDecisionAdmission (ListeChoix lc, int pos, int val) |
Modifie la décision d'un département. Plus de détails... | |
int | trouverPos (ListeChoix lc, char ville[], char dept[]) |
Retourne la position dans la liste de choix d'un choix recherché Plus de détails... | |
Fichier contenant les fonctions des structures de la partie 2.
void afficherCandidatsChoix | ( | Choix | choix | ) |
Affiche un choix.
choix | Le choix à afficher |
void afficherChoix | ( | ListeChoix | lc | ) |
Affiche tous les choix d'une liste.
lc | Liste de choix |
char* getDeptChoix | ( | ListeChoix | lc, |
int | pos | ||
) |
Retourne le département d'un choix.
lc | Liste de choix |
pos | Position du choix duquel on veut retourner le département |
char* getVilleChoix | ( | ListeChoix | lc, |
int | pos | ||
) |
Retourne la ville d'un choix.
lc | Liste de choix |
pos | Position du choix duquel on veut retourner le département |
ListeChoix insererChoix | ( | ListeChoix | lc, |
Choix | choix | ||
) |
Insère un nouveau choix dans une liste dans l'ordre alphabétique de la ville et du département.
lc | Liste de choix dans laquelle insérer |
choix | Choix à insérer |
ListeChoix insererEnTeteChoix | ( | ListeChoix | lc, |
Choix | choix | ||
) |
Insère un choix en tête de d'une liste.
lc | Liste de choix dans laquelle insérer |
choix | Choix à insérer |
ListeChoix listenouvChoix | ( | void | ) |
Retourne une nouvelle liste vide.
int longueurChoix | ( | ListeChoix | lc | ) |
Retourne la longueur d'une liste de choix.
lc | Liste de choix |
bool rechercheChoix | ( | ListeChoix | lc, |
Choix | choix | ||
) |
Recherche un choix dans une liste.
lc | Liste de choix dans laquelle rechercher |
choix | Choix à rechercher |
void setDecisionAdmission | ( | ListeChoix | lc, |
int | pos, | ||
int | val | ||
) |
Modifie la décision d'un département.
lc | Liste de choix |
pos | Position du choix à modifier |
val | Nouvelle valeur de la décision du département |
ListeChoix supprimerChoix | ( | ListeChoix | lc, |
Choix | choix | ||
) |
Supprime un choix particulier dans une liste.
lc | Liste dans laquelle supprimer |
choix | Choix à supprimer |
ListeChoix supprimerEnTeteChoix | ( | ListeChoix | lc | ) |
supprime le choix en tête d'une liste
lc | Liste dans laquelle supprimer |
Choix TeteChoix | ( | ListeChoix | lc | ) |
int trouverPos | ( | ListeChoix | lc, |
char | ville[], | ||
char | dept[] | ||
) |
Retourne la position dans la liste de choix d'un choix recherché
lc | Liste de choix |
ville | Ville du choix à rechercher |
dept | Département du choix à rechercher |
bool videChoix | ( | ListeChoix | lc | ) |
Vérifie si une liste est vide.
lc | Liste de choix |