From 974e357544015f797f57a851c5e90c6126ad4331 Mon Sep 17 00:00:00 2001 From: ines delinac Date: Wed, 13 Dec 2023 14:41:01 +0100 Subject: [PATCH] lentement mais surement --- fonction1.c | 12 ++++++++++++ main.c | 2 ++ specification1.h | 27 +++++++++++++++++++++++++-- 3 files changed, 39 insertions(+), 2 deletions(-) diff --git a/fonction1.c b/fonction1.c index e69de29..d1e8543 100644 --- a/fonction1.c +++ b/fonction1.c @@ -0,0 +1,12 @@ +#include "specification1.h" + +//~~~~~~~~~~~~PARTIE 1~~~~~~~~~~~~ +void AfficheDevis(ListeDevis l, char t) +{ + +} + +void AfficheDevisE(ListeDevis l, char entr, char t) +{ + +} \ No newline at end of file diff --git a/main.c b/main.c index e69de29..fc217d6 100644 --- a/main.c +++ b/main.c @@ -0,0 +1,2 @@ +#include "specification1.h" + diff --git a/specification1.h b/specification1.h index 765bd60..aea5fe6 100644 --- a/specification1.h +++ b/specification1.h @@ -14,7 +14,6 @@ typedef struct typedef struct { - char tache[30]; char entreprise[30]; Adresse adresse; int capital; @@ -34,4 +33,28 @@ typedef struct ListeDevis ldevis; } Offre; -//~~~~~~~~~~~~~~~~~~~~~~~~~~~FONCTION~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \ No newline at end of file +//~~~~~~~~~~~~~~~~~~~~~~~~~~~FONCTION~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +//~~~~~~~~~~~~PARTIE 1~~~~~~~~~~~~ +//Afficher l'ensemble des devis pour un type de travaux +//@t étant la tache +void AfficheDevis(ListeDevis l, char t); + +//Afficher le devis d'une entreprise donnée pour un type de travaux donnée +//Peut-on utiliser la fct précédente ? +//@t étant la tâche +//@entr étant le nom de l'entreprise +void AfficheDevisE(ListeDevis l, char entr, char t); + +//~~~Idée :~~~ + +//1.Afficher l'ensemble des entreprise pour un codePostal donné +//2.Afficher l'entreprise avec la duree la moins longue à réaliser en fonction de la tâche +//3.Affiche la duree d'execution d'une tache, d'une entreprise en particulier + + +//~~~~~~~~~~~~PARTIE 2~~~~~~~~~~~~ +//Afficher l'entreprise qui a la tâche(travaux) retenu +//celle ayant le coût de réalisation le moins cher +//si égalité : +//Celle ayant le plus gros capital +void ShowEntrepTache(ListeDevis l, char trv); \ No newline at end of file