From 7acae0bc428fd4abc83a34b0f0443183f2861386 Mon Sep 17 00:00:00 2001 From: "julien.abadie" Date: Fri, 10 Nov 2023 14:46:37 +0100 Subject: [PATCH] ajout de TOUTE la doc qui n'existait pas --- src/menu.c | 44 ++++++++++++++++---------------------------- 1 file changed, 16 insertions(+), 28 deletions(-) diff --git a/src/menu.c b/src/menu.c index 166b191..eec8827 100644 --- a/src/menu.c +++ b/src/menu.c @@ -69,35 +69,23 @@ void clientMenu(float *weight, float *volume, float *price, int tabItemRef[], fl } /** - * The adminMenu function displays a menu for the admin user to perform various actions such as - * adding/modifying/deleting clients and items, and displaying client/item data. + * La fonction `adminMenu` permet à l'utilisateur administrateur de pouvoir utiliser des fonctions permettant + * d'ajouter/supprimer/modifier des articles du panier/ des clients, et afficher les informations + * du client/de l'article. * - * @param clientID An array that stores the IDs of the clients. - * @param clientPassword The parameter `clientPassword` is an array that stores the passwords of the - * clients. It is used to authenticate the clients when they log in to the system. - * @param cagnotte An array that stores the balance of each client's account. - * @param suspended The "suspended" parameter is an array that stores the suspension status of each - * client. It is used to keep track of whether a client's account is suspended or not. The value of 0 - * indicates that the client's account is not suspended, while the value of 1 indicates that the client - * @param isAdmin An array of integers indicating whether each client is an admin or not. If the value - * at index i is 1, it means that the client with ID clientID[i] is an admin. If the value is 0, it - * means that the client is not an admin. - * @param tabReference An array that stores the reference numbers of the items. - * @param tabWeight tabWeight is an array that stores the weight of each item in the inventory. - * @param tabVolume The parameter "tabVolume" is an array that stores the volume of each item in the - * inventory. It is used in various functions to perform operations related to the items, such as - * adding a new item, deleting an item, or displaying the data of an item. - * @param unitPrice The parameter `unitPrice` is an array of type `float` that stores the unit price of - * each item. It is used in various functions to perform calculations or display information related to - * the price of items. - * @param tlogItem The parameter "tlogItem" is a pointer to an integer variable that keeps track of the - * total number of items in the system. It is used to determine the size of the arrays that store - * information about the items, such as tabReference, tabWeight, tabVolume, and unitPrice. - * @param tlogClient The parameter "tlogClient" is a pointer to an integer variable that keeps track of - * the total number of clients in the system. It is used to determine the size of the arrays that store - * client information, such as clientID, clientPassword, cagnotte, suspended, and isAdmin. - * - * @return The function does not return any value. It is a void function. + * @param clientID Tableau int qui stocke les identifiants des clients. + * @param clientPassword Tableau int qui stocke les mots de passe des clients. + * @param cagnotte Tableau float qui stocke les cagnonttes de chaque client. + * @param suspended Tableau int qui stocke l'état de suspention du compte des clients. + * Suspendu = 1, 0 sinon. + * @param isAdmin Tableau int qui indique si l'utilisateur de l'application est administrateur. + * Administrateur = 1, 0 sinon. + * @param tabReference Tableau int qui stocke les références des articles. + * @param tabWeight Tableau float qui stocke le poids des articles. + * @param tabVolume Tableau float qui stocke le volume des articles. + * @param unitPrice Tableau float qui stocke le prix des articles. + * @param tlogItem Taille logique du tableau `tabItemRef`. + * @param tlogClient Taille logique du tableau `clientID`. */ void adminMenu(int clientID[], int clientPassword[], float cagnotte[], int suspended[], int isAdmin[], int tabReference[], float tabWeight[], float tabVolume[], float unitPrice[], int *tlogItem, int *tlogClient) {