parent
09b2c63860
commit
69d463f3f2
@ -1,6 +1,37 @@
|
|||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
|
int displayMenu(void)
|
||||||
|
{
|
||||||
|
int choice;
|
||||||
|
//TODO > Clear screen
|
||||||
|
printf("\n=================================\n");
|
||||||
|
printf(" Menu Principal\n");
|
||||||
|
printf("=================================\n");
|
||||||
|
printf("1. \u25B6 Option 1\n");
|
||||||
|
printf("2. \u25B6 Option 2\n");
|
||||||
|
printf("3. \u25B6 Option 3\n");
|
||||||
|
printf("4. \u274C Quitter\n");
|
||||||
|
printf("=================================\n");
|
||||||
|
printf("Votre choix : ");
|
||||||
|
scanf("%d", &choice);
|
||||||
|
}
|
||||||
|
|
||||||
|
void global(void)
|
||||||
|
{
|
||||||
|
// Déclaration des variables
|
||||||
|
int tLogArticle, tLogClient, choice;
|
||||||
|
int reference[tmaxArticles], clientID[tmaxClients], suspended[tmaxClients];
|
||||||
|
float weight[tmaxArticles], volume[tmaxArticles], unitPrice[tmaxArticles], cagnotte[tmaxClients];
|
||||||
|
// Chargement de toute les données
|
||||||
|
chargeDonnees(&tLogArticle, &tLogClient, reference, weight, volume, unitPrice, clientID, cagnotte, suspended);
|
||||||
|
// Affichage du menu
|
||||||
|
choice = displayMenu();
|
||||||
|
|
||||||
|
//TODO > Voir si on a le droit au switch/case
|
||||||
|
}
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
global();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
Loading…
Reference in new issue