SAE S1.02 - Comparaison d'approches algorithmiques
Fonctions
Référence du fichier structuresP2.c

Fichier contenant les fonctions des structures de la partie 2. Plus de détails...

#include "SAE.h"
Graphe des dépendances par inclusion de structuresP2.c:

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...
 

Description détaillée

Fichier contenant les fonctions des structures de la partie 2.

Auteur
Antoine Perederii

Documentation des fonctions

◆ afficherCandidatsChoix()

void afficherCandidatsChoix ( Choix  choix)

Affiche un choix.

Auteur
Antoine Perederii
Paramètres
choixLe choix à afficher

◆ afficherChoix()

void afficherChoix ( ListeChoix  lc)

Affiche tous les choix d'une liste.

Auteur
Antoine Perederii
Paramètres
lcListe de choix

◆ getDeptChoix()

char* getDeptChoix ( ListeChoix  lc,
int  pos 
)

Retourne le département d'un choix.

Auteur
Antoine Perederii
Paramètres
lcListe de choix
posPosition du choix duquel on veut retourner le département
Renvoie
char*

◆ getVilleChoix()

char* getVilleChoix ( ListeChoix  lc,
int  pos 
)

Retourne la ville d'un choix.

Auteur
Antoine Perederii
Paramètres
lcListe de choix
posPosition du choix duquel on veut retourner le département
Renvoie
char*

◆ insererChoix()

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.

Auteur
Antoine Perederii
Paramètres
lcListe de choix dans laquelle insérer
choixChoix à insérer
Renvoie
ListeChoix

◆ insererEnTeteChoix()

ListeChoix insererEnTeteChoix ( ListeChoix  lc,
Choix  choix 
)

Insère un choix en tête de d'une liste.

Auteur
Antoine Perederii
Paramètres
lcListe de choix dans laquelle insérer
choixChoix à insérer
Renvoie
ListeChoix

◆ listenouvChoix()

ListeChoix listenouvChoix ( void  )

Retourne une nouvelle liste vide.

Auteur
Antoine Perederii
Renvoie
ListeChoix

◆ longueurChoix()

int longueurChoix ( ListeChoix  lc)

Retourne la longueur d'une liste de choix.

Auteur
Antoine Perederii
Paramètres
lcListe de choix
Renvoie
int

◆ rechercheChoix()

bool rechercheChoix ( ListeChoix  lc,
Choix  choix 
)

Recherche un choix dans une liste.

Auteur
Antoine Perederii
Paramètres
lcListe de choix dans laquelle rechercher
choixChoix à rechercher
Renvoie
true
false

◆ setDecisionAdmission()

void setDecisionAdmission ( ListeChoix  lc,
int  pos,
int  val 
)

Modifie la décision d'un département.

Auteur
Antoine Perederii
Paramètres
lcListe de choix
posPosition du choix à modifier
valNouvelle valeur de la décision du département

◆ supprimerChoix()

ListeChoix supprimerChoix ( ListeChoix  lc,
Choix  choix 
)

Supprime un choix particulier dans une liste.

Auteur
Antoine Perederii
Paramètres
lcListe dans laquelle supprimer
choixChoix à supprimer
Renvoie
ListeChoix

◆ supprimerEnTeteChoix()

ListeChoix supprimerEnTeteChoix ( ListeChoix  lc)

supprime le choix en tête d'une liste

Auteur
Antoine Perederii
Paramètres
lcListe dans laquelle supprimer
Renvoie
ListeChoix

◆ TeteChoix()

Choix TeteChoix ( ListeChoix  lc)

Retourne le choix en tête de liste.

Auteur
Antoine Perederii
Paramètres
lcListe de choix
Renvoie
Choix

◆ trouverPos()

int trouverPos ( ListeChoix  lc,
char  ville[],
char  dept[] 
)

Retourne la position dans la liste de choix d'un choix recherché

Auteur
Antoine Perederii
Paramètres
lcListe de choix
villeVille du choix à rechercher
deptDépartement du choix à rechercher
Renvoie
int

◆ videChoix()

bool videChoix ( ListeChoix  lc)

Vérifie si une liste est vide.

Auteur
Antoine Perederii
Paramètres
lcListe de choix
Renvoie
true
false