Programme langace c gestion

Signaler
Messages postés
19
Date d'inscription
vendredi 17 mai 2013
Statut
Membre
Dernière intervention
6 novembre 2013
-
Messages postés
3829
Date d'inscription
dimanche 12 décembre 2004
Statut
Modérateur
Dernière intervention
8 janvier 2021
-
Bonjour, voila mon programme je ne sais pas pk il me donne des fautes, je ne vois aucune faute, par exemple il me dit qu'il y a une faute dans ( fulshall) alors que fullshall et très importante dans mon programme, quelqu'un a le temps pour ce grand travail :D ? merci


#include<conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include<ctype.h>
#include<string.h>
#include <stdlib.h>
#include<dos.h>
#include <PROCESS.H>
FILE* fmd,*f1,*tmp,*fact,*fcl;
int choix;

struct camion
{
char matricule[20];
char prixKM[20];
char categorie[20];
char datedebut[20];
}md,mdc;
int b;
struct client
{
char codeclt[20];
char nomclt[20];
char prenomclt[20];
char telclt[20];
char faxclt[20];
char adresseclt[50];
char cinclt[20];
}cl,clt;
struct facture
{
int Qut;
float prixKM;
float tva;
float tht;
float ttc;
}f,fac;
void factureclt();
void menu();
void interface();
void ajouter();
void modifier();
void rechercher();
void supprimer();
void facturemd();
void lister();
void quitter();
void cadrefacture();
//void medicament();
void client();
void c();
void facture();
int exist,k=0;
void cadre(int a,int b, int c,int d);

void menuclt();
void interfaceclt();
void ajouterclt();
void modifierclt();
void rechercherclt();
void supprimerclt();
void listerclt();
void quitterclt();
void cadre(int a,int b, int c,int d);

void ajouterfact();
void rechercherfact();
void modifierfact();
void supprimerfact();
void listerfact();
//void quitterfact();break;
void face();
void menugeneral();
char rep;
void menufact();
void interfacefact();


int z=0;
/*************/
void times()
{
time_t a;
time(&a);
delay(50); printf(ctime(&a));


}
//---------------------------

void cadre(int a,int b,int c,int d)
{

int k,h,j,i;
clrscr();
gotoxy(a,c);cprintf("Ú");
gotoxy(b,c);cprintf("¿");

gotoxy(a,d);cprintf("À");
gotoxy(b,d);cprintf("Ù");
k=d-c;h=b-a;
for(j=c;j<d+1;j=j+k)
{
for(i=a+1;i<b;i++)
{
gotoxy(i,j);cprintf("Ä");
}}
for(i=a;i<b+1;i=i+h)
{
for(j=c+1;j<d;j++)
{
gotoxy(i,j);cprintf("³");
}}}
/********/
void c()
{
textcolor(15);
gotoxy(1,1);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(1,2);cprintf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(1,3);cprintf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(1,4);cprintf("ÛÛ±±ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ±±ÛÛ");
gotoxy(1,5);cprintf("ÛÛ±±ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ±±ÛÛ");
gotoxy(1,5);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,6);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,7);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,8);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,9);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,10);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,11);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,12);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,13);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,14);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,15);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,16);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,17);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,18);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,19);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,20);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,21);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,22);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,23);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,24);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,25);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,26);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,27);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,28);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,29);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,30);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,31);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,32);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,33);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,34);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,35);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,36);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,37);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,38);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,39);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,40);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,41);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,42);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,43);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,44);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,45);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,46);cprintf("ÛÛ±±ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ±±ÛÛ");
gotoxy(1,47);cprintf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(1,48);cprintf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(1,49);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
textcolor(15);
}
/********/

void acceuil()
{

textcolor(7);
//gotoxy(15,3); cprintf("M");delay(200);
//gotoxy(25,3); cprintf("I");;delay(200);
gotoxy(35,3); cprintf("A");delay(200);
gotoxy(45,3); cprintf("G");delay(200);
gotoxy(55,3); cprintf("E");delay(200);
gotoxy(15,15);cprintf("PROJET DE PROGRAMMATION EN LANGAGE C");delay(200);
gotoxy(18,20);cprintf("GESTION DE FRAIS DE TRANSPORT");delay(200);
gotoxy(10,27);cprintf("Mr OTHMANE FIKRI");delay(200);
gotoxy(10,29);cprintf("Mr .............");delay(200);
gotoxy(42,25);cprintf("Encadré par: ");delay(200);
gotoxy(45,28);cprintf("Mr. Rachid EL OUASSIF");delay(200);
gotoxy(20,35);cprintf("Année Academique:2012/2013");
gotoxy(1,40);cprintf("ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»");
gotoxy(1,41);cprintf("ºAppuiyez sur la touche entrer pour lancer le menu principale de l'applicationº");
gotoxy(1,42);cprintf("ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ");
getch();
}
/*----------------------------------------------*/
void camion()
{
int choix,m=0;
clrscr();
do
{
menugeneral();
gotoxy(45,43);
scanf("%d",&choix);
switch( choix)
{
case 1:ajouter();break;
case 2:rechercher(); break;
case 3:modifier(); break;
case 4:supprimer();break;
case 5:lister(); break;
case 6:m=1;break;
}
}while(m!=1);
interface();

}


/*----------------------------------------------*/


void client()
{
int choix,m=0;
clrscr();
do
{
menugeneral();
gotoxy(45,43);
scanf("%d",&choix);
switch( choix)
{
case 1:ajouterclt();break;
case 2:rechercherclt(); break;
case 3:modifierclt(); break;
case 4:supprimerclt();break;
case 5:listerclt(); break;
case 6:m=1;break;
}
}while(m!=1);
interface();
}

/*----------------------------------------------*/


void facture()
{
int choix,m=0;
clrscr();
do
{
menugeneral();
gotoxy(40,32);
scanf("%d",&choix);
switch( choix)
{
//case 1:ajouterfact();break;
//case 2:rechercherfact(); break;
//case 3:modifierfact(); break;
//case 4:supprimerfact();break;
//case 5:listerfact(); break;
//case 6:m=1;break;
}
}while(m!=1);
interface();
}
/***********/
void demar()
{

clrscr();
textcolor(15);
gotoxy(1,1);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(1,2);cprintf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(1,3);cprintf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(1,4);cprintf("ÛÛ±±ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ±±ÛÛ");
gotoxy(1,5);cprintf("ÛÛ±±ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ±±ÛÛ");
gotoxy(1,5);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,6);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,7);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,8);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,9);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,10);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,11);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,12);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,13);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,14);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,15);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,16);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,17);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,18);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,19);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,20);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,21);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,22);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,23);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,24);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,25);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,26);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,27);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,28);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,29);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,30);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,31);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,32);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,33);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,34);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,35);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,36);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,37);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,38);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,39);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,40);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,41);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,42);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,43);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,44);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,45);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,46);cprintf("ÛÛ±±ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ±±ÛÛ");
gotoxy(1,47);cprintf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(1,48);cprintf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(1,49);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");


gotoxy(22,15);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(22,16);cprintf("Û ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ Û");
gotoxy(22,17);cprintf("Û ³ ³ Û");
gotoxy(22,18);cprintf("Û ³ 1 ===>camion<=== 1 ³ Û");
gotoxy(22,19);cprintf("Û ³ ³ Û");
gotoxy(22,20);cprintf("Û ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ Û");
gotoxy(22,21);cprintf("Û ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ Û");
gotoxy(22,22);cprintf("Û ³ ³ Û");
gotoxy(22,23);cprintf("Û ³ 2 ===> CLIENT <=== 2 ³ Û");
gotoxy(22,24);cprintf("Û ³ ³ Û");
gotoxy(22,25);cprintf("Û ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ Û");
gotoxy(22,26);cprintf("Û ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ Û");
gotoxy(22,27);cprintf("Û ³ ³ Û");
gotoxy(22,28);cprintf("Û ³ 3 ===> FACTURE <=== 3 ³ Û");
gotoxy(22,29);cprintf("Û ³ ³ Û");
gotoxy(22,30);cprintf("Û ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ Û");
gotoxy(22,31);cprintf("Û ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ Û");
gotoxy(22,32);cprintf("Û ³ ³ Û");
gotoxy(22,33);cprintf("Û ³ 4 ===> QUITTER <=== 4 ³ Û");
gotoxy(22,34);cprintf("Û ³ ³ Û");
gotoxy(22,35);cprintf("Û ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ Û");
gotoxy(22,36);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(5,41);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(22,38);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(22,39);cprintf("Û ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ Û");
gotoxy(22,40);cprintf("Û ³ ³ Û");
gotoxy(22,41);cprintf("Û ³Tapper votre choix[.....] ³ Û");
gotoxy(22,42);cprintf("Û ³ ³ Û");
gotoxy(22,43);cprintf("Û ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ Û");
gotoxy(22,44);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");

gotoxy(5,10); cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(22,7); cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(22,8); cprintf("Û ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ Û");
gotoxy(22,9); cprintf("Û ³ ³ Û");
gotoxy(22,10);cprintf("Û ³ Menu Principal ³ Û");
gotoxy(22,11);cprintf("Û ³ ³ Û");
gotoxy(22,12);cprintf("Û ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ Û");
gotoxy(22,13);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");

}
/***----------------------------------------------***/
void main()
{

int choix,r=0;
int i,j; int v,t;textbackground(9);


clrscr();
gotoxy(10,1);cprintf("*************************************************************");
gotoxy(10,50);cprintf("*************************************************************");
gotoxy(10,2);cprintf("*");
gotoxy(10,3);cprintf("*");
gotoxy(10,4);cprintf("*");
gotoxy(10,5);cprintf("*");
gotoxy(10,6);cprintf("*");
gotoxy(10,7);cprintf("*");
gotoxy(10,8);cprintf("*");
gotoxy(1,9);cprintf("**********");
gotoxy(10,49);cprintf("*");
gotoxy(10,48);cprintf("*");
gotoxy(10,47);cprintf("*");
gotoxy(10,46);cprintf("*");
gotoxy(10,45);cprintf("*");
gotoxy(10,44);cprintf("*");
gotoxy(10,43);cprintf("*");
gotoxy(1,42);cprintf("**********");
gotoxy(70,49);cprintf("*");
gotoxy(70,48);cprintf("*");
gotoxy(70,47);cprintf("*");
gotoxy(70,46);cprintf("*");
gotoxy(70,45);cprintf("*");
gotoxy(70,44);cprintf("*");
gotoxy(70,43);cprintf("*");
gotoxy(70,42);cprintf("**********");

gotoxy(70,2);cprintf("*");
gotoxy(70,3);cprintf("*");
gotoxy(70,4);cprintf("*");
gotoxy(70,5);cprintf("*");
gotoxy(70,6);cprintf("*");
gotoxy(70,7);cprintf("*");
gotoxy(70,8);cprintf("*");
gotoxy(70,9);cprintf("***********");
gotoxy(8,2);cprintf("*");
gotoxy(8,3);cprintf("*");
gotoxy(8,4);cprintf("*");
gotoxy(8,5);cprintf("*");
gotoxy(8,6);cprintf("*");
gotoxy(8,7);cprintf("*");
gotoxy(2,7);cprintf("*******");
gotoxy(6,3);cprintf("*");
gotoxy(6,4);cprintf("*");
gotoxy(6,5);cprintf("*");
gotoxy(3,5);cprintf("****");
gotoxy(14,7);cprintf("*");
gotoxy(14,8);cprintf("*");
gotoxy(14,9);cprintf("*");
gotoxy(14,10);cprintf("*");
gotoxy(14,11);cprintf("*");
gotoxy(14,12);cprintf("*");
gotoxy(8,12);cprintf("*******");
gotoxy(12,8);cprintf("*");
gotoxy(12,9);cprintf("*");
gotoxy(12,10);cprintf("*");
gotoxy(9,10);cprintf("****");
gotoxy(14,12);cprintf("*");
gotoxy(72,2);cprintf("*");
gotoxy(72,3);cprintf("*");
gotoxy(72,4);cprintf("*");
gotoxy(72,5);cprintf("*");
gotoxy(72,6);cprintf("*");
gotoxy(72,7);cprintf("*");
gotoxy(72,7);cprintf("*******");
textcolor(175);
gotoxy(15,12);cprintf("***************************************************");
gotoxy(15,11);cprintf("---------------------------------------------------");
gotoxy(16,13);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(16,15);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(16,16);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(16,17);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(16,18);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(16,19);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(26,19);cprintf("-----------------------------------");
gotoxy(16,37);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(16,36);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(16,35);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(16,34);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(16,33);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(26,33);cprintf("-----------------------------------");
gotoxy(55,15);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(55,16);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(55,17);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(55,18);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(55,19);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(55,37);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(55,36);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(55,35);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(55,34);cprintf("ÛÛÛÛÛÛÛÛÛÛ");
gotoxy(55,33);cprintf("ÛÛÛÛÛÛÛÛÛÛ");

gotoxy(16,38);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(17,14);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(17,37);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(15,40);cprintf("---------------------------------------------------");
gotoxy(15,39);cprintf("***************************************************");
for(t=0;t<26;t++)
{
gotoxy(14,13+t);cprintf("*ÛÛ");
gotoxy(64,13+t);cprintf("ÛÛ*");
}
textcolor(7);

gotoxy(74,3);cprintf("*");
gotoxy(74,4);cprintf("*");
gotoxy(74,5);cprintf("*");
gotoxy(74,5);cprintf("****");
gotoxy(66,7);cprintf("*");
gotoxy(66,8);cprintf("*");
gotoxy(66,9);cprintf("*");
gotoxy(66,10);cprintf("*");
gotoxy(66,11);cprintf("*");
gotoxy(66,12);cprintf("*");
gotoxy(66,12);cprintf("*******");
gotoxy(68,8);cprintf("*");
gotoxy(68,9);cprintf("*");
gotoxy(68,10);cprintf("*");
gotoxy(68,10);cprintf("****");

gotoxy(72,45);cprintf("*");
gotoxy(72,46);cprintf("*");
gotoxy(72,47);cprintf("*");
gotoxy(72,48);cprintf("*");
gotoxy(72,49);cprintf("*");
gotoxy(72,44);cprintf("*******");
gotoxy(74,47);cprintf("*");
gotoxy(74,48);cprintf("*");
gotoxy(74,46);cprintf("****");


gotoxy(66,40);cprintf("*");
gotoxy(66,41);cprintf("*");
gotoxy(66,42);cprintf("*");
gotoxy(66,43);cprintf("*");
gotoxy(66,44);cprintf("*");
gotoxy(66,39);cprintf("*******");
gotoxy(68,42);cprintf("*");
gotoxy(68,43);cprintf("*");
gotoxy(68,41);cprintf("****");


gotoxy(8,45);cprintf("*");
gotoxy(8,46);cprintf("*");
gotoxy(8,47);cprintf("*");
gotoxy(8,48);cprintf("*");
gotoxy(8,49);cprintf("*");
gotoxy(2,44);cprintf("*******");
gotoxy(6,47);cprintf("*");
gotoxy(6,48);cprintf("*");
gotoxy(3,46);cprintf("****");
gotoxy(14,40);cprintf("*");
gotoxy(14,41);cprintf("*");
gotoxy(14,42);cprintf("*");
gotoxy(14,43);cprintf("*");
gotoxy(14,44);cprintf("*");
gotoxy(8,39);cprintf("*******");
gotoxy(12,42);cprintf("*");
gotoxy(12,43);cprintf("*");
gotoxy(9,41);cprintf("****");

for(i=0;i<33;i++)
{
gotoxy(1,10+i);cprintf("*");
gotoxy(80,10+i);cprintf("*");
}




//*/
//textcolor(7);
/*gotoxy(20,5);cprintf("*ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ*");delay(175);
gotoxy(21,6);cprintf("*ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ*");delay(175);
gotoxy(22,7);cprintf("*ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ*");delay(175);
gotoxy(23,8);cprintf("*ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ*");delay(175);
for(j=0;j<4;j++)
{textcolor(19+j);delay(25);
}
gotoxy(20,9) ;cprintf("ÚÄ¿Ú

Ä¿ Â ÚÄ¿ ÚÄÄ¿ ÚÄÄ");delay(175);
gotoxy(20,10);cprintf("³ ÀÙ ³ ³ ÃÄ' ³ÚÄ¿ ÃÄ");delay(175);
gotoxy(20,11);cprintf("Ù À Á Ù À ÀÄÄÙ ÀÄÄ");delay(175);
textcolor(18);
gotoxy(24,12);cprintf("*ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ*");delay(175);
gotoxy(25,13);cprintf("*ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ*");delay(175);
gotoxy(26,14);cprintf("*ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ*");delay(175);
gotoxy(27,15);cprintf("*ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ*");delay(175);
gotoxy(28,16);cprintf("*ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ*");delay(175);
gotoxy(29,17);cprintf("*ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ*");delay(175);
gotoxy(30,18);cprintf("*ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ*");delay(175);
gotoxy(31,19);cprintf("*ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ*");delay(175);
gotoxy(32,20);cprintf("*ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ*");delay(175);
gotoxy(33,21);cprintf("*ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ*");delay(175);
gotoxy(34,22);cprintf("*ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ*");delay(175);
gotoxy(35,23);cprintf("*ÛÛÛÛÛÛÛÛÛÛÛÛÛ*");delay(175);
gotoxy(36,24);cprintf("*ÛÛÛÛÛÛÛÛÛÛÛ*");delay(175); */
gotoxy(20,4);cprintf("IIII IIIII II IIIIIII IIIIIIII IIIIIII");
gotoxy(20,5);cprintf("II III II II II II II II");
gotoxy(20,6);cprintf("II II II IIIIIII II IIIII IIIII");
gotoxy(20,7);cprintf("II II II II II II II II II");
gotoxy(20,8);cprintf("II II II II II IIIIIIIII IIIIIII");
gotoxy(30,16);cprintf("Gestion de frais de transport");
gotoxy(15,42);cprintf("Réalisé par: OTHMANE FIKRI");
//gotoxy(28,44);cprintf("Samira SANDADI");
gotoxy(32,48);cprintf("Encadrer par:Rachid EL OUASSIF");
//gotoxy(55,23);cprintf("---------");
//gotoxy(57,26);cprintf("TEMARA");
textcolor(10);
gotoxy(32,36);cprintf("2 0 1 2 / 2 0 1 3");
gotoxy(35,24);cprintf(" Û");
gotoxy(35,25);cprintf("ÛßßßßßßÛßßßßßßßßßÛ");
gotoxy(35,26);cprintf("Û Û ß ß");
gotoxy(35,27);cprintf("ßßßßßßßÛßßßßßßÛ");
gotoxy(35,28);cprintf(" Û Û");
gotoxy(35,29);cprintf("ÛßßßßßßÛßßßßßßß");
gotoxy(35,30);cprintf("Û Û");
gotoxy(35,31);cprintf("ßßßßßßßÛßßßßßßßÛ");
gotoxy(35,32);cprintf(" Û");
int a,b=2;
for(a=1;a<=b;a++)
{
textcolor(4);
gotoxy(52,25+a);cprintf("³");delay(200);
gotoxy(52,26+a);cprintf("³");delay(200);
textcolor(15);
}



/***************************/
getch();
do
{
//menugeneral();
demar();
gotoxy(51,41);scanf("%d",&choix);
switch(choix)
{
/*case 1:camion();break;
case 2:client();break;
case 3:factureclt();break;/*

//case 4:modifier();break;
//case 5:supprimer();break;
//case 6:lister();break;
case 4:r=1;break;
}
}while(r!=1);
demar();
}

/**************/
void menugeneral()
{
int t;
textbackground(9);
clrscr();
textcolor(7);

gotoxy(1,1);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(1,2);cprintf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(1,3);cprintf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(1,4);cprintf("ÛÛ±±ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ±±ÛÛ");
gotoxy(1,5);cprintf("ÛÛ±±ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ±±ÛÛ");
gotoxy(1,5);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,6);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,7);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,8);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,9);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,10);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,11);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,12);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,13);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,14);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,15);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,16);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,17);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,18);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,19);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,20);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,21);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,22);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,23);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,24);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,25);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,26);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,27);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,28);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,29);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,30);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,31);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,32);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,33);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,34);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,35);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,36);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,37);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,38);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,39);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,40);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,41);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,42);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,43);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,44);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,45);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,46);cprintf("ÛÛ±±ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ±±ÛÛ");
gotoxy(1,47);cprintf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(1,48);cprintf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(1,49);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");

gotoxy(23,5);cprintf(" Û Û");
gotoxy(23,6);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(23,7);cprintf("Û Û");
gotoxy(23,8);cprintf("Û M e n u g e n e r a l Û");
gotoxy(23,9);cprintf("Û Û");
gotoxy(23,10);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(23,11);cprintf(" Û ");
gotoxy(26,12);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(26,13);cprintf("Û Û");
gotoxy(26,14);cprintf("Û [1]:ajouter Û");
gotoxy(26,15);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(23,16);cprintf(" Û ");
gotoxy(26,17);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(26,18);cprintf("Û Û");
gotoxy(26,19);cprintf("Û [2]:Rechercher Û");
gotoxy(26,20);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(23,21);cprintf(" Û ");
gotoxy(26,22);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(26,23);cprintf("Û Û");
gotoxy(26,24);cprintf("Û [3]:Modifier Û");
gotoxy(26,25);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(23,26);cprintf(" Û ");
gotoxy(26,27);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(26,28);cprintf("Û Û");
gotoxy(26,29);cprintf("Û [4]:Supprimer Û");
gotoxy(26,30);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(23,31);cprintf(" Û ");
gotoxy(26,32);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(26,33);cprintf("Û Û");
gotoxy(26,34);cprintf("Û [5]:Lister Û");
gotoxy(26,35);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(23,36);cprintf(" Û ");
gotoxy(26,37);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(26,38);cprintf("Û Û");
gotoxy(26,39);cprintf("Û [6]:Quitter Û");
gotoxy(26,40);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
//gotoxy(15,24);cprintf("[1]:ajouter");
//gotoxy(15,26);cprintf("[2]:Rchercher");
//gotoxy(15,28);cprintf("[3]:Modifier");
//gotoxy(15,30);cprintf("[4]:Supprimer");
//gotoxy(15,32);cprintf("[5]:Lister");
//gotoxy(15,34);cprintf("[6]:Quitter");
gotoxy(23,41);cprintf(" Û ");
gotoxy(23,42);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(23,43);cprintf("ÛTapper votre choix[.....] Û");
gotoxy(23,44);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(23,45);cprintf(" Û Û ");
//gotoxy(26,41);cprintf("Tapper votre choix[....]");
}
/*********************/

void interface()
{
textcolor(15);
gotoxy(1,1);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(1,2);cprintf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(1,3);cprintf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(1,4);cprintf("ÛÛ±±ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ±±ÛÛ");
gotoxy(1,5);cprintf("ÛÛ±±ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ±±ÛÛ");
gotoxy(1,5);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,6);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,7);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,8);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,9);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,10);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,11);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,12);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,13);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,14);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,15);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,16);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,17);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,18);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,19);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,20);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,21);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,22);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,23);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,24);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,25);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,26);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,27);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,28);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,29);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,30);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,31);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,32);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,33);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,34);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,35);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,36);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,37);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,38);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,39);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,40);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,41);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,42);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,43);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,44);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,45);cprintf("ÛÛ±±ÛÛ ÛÛ±±ÛÛ");
gotoxy(1,46);cprintf("ÛÛ±±ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ±±ÛÛ");
gotoxy(1,47);cprintf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(1,48);cprintf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(1,49);cprintf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");

gotoxy(20,16);cprintf("matricule camion :..........................");
gotoxy(20,18);cprintf("*******************************************");
gotoxy(20,22);cprintf("Categorie :..........................");
gotoxy(20,24);cprintf("prixKM :..........................");
gotoxy(20,26);cprintf("Date Debut :.../../....");
}
/******************/

void ajouter()
{

int ok = 0,oui=0,yes=0;
int i,f,v;
int j,mo,a;
char cdd[20],cm[3],ca[5];

do
{

clrscr();
fmd=fopen("c:\\camion.txt","a+");
if (fmd==NULL) //tester l'existance du fichier
{
fmd=fopen("c:\\camion.txt","w");
}


flushall();/*vide tous les tampon associes.*/
textcolor(15);

interface();

gotoxy(23,7);printf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(23,8);printf( "ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(23,9);printf( "ÛÛ±± ±±ÛÛ");
gotoxy(23,10);printf("ÛÛ±± Ajouter ±±ÛÛ");
gotoxy(23,11);printf("ÛÛ±± ±±ÛÛ");
gotoxy(23,12);printf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(23,13);printf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");

gotoxy(39,16);scanf("%s",&mdc.matricule);
exist=0;
while(!feof(fmd))
{
flushall();
fscanf(fmd,"%s\t%s\t%s\n",md.matricule,&md.categorie,md.prixKM);
if( strcmp(md.matricule,mdc.matricule)==0)
{
exist=1;
break;
}
}

if (exist==1)
{
clrscr();
gotoxy(10,10);printf("matricule d'ja existant ");
}
else
{
flushall();


gotoxy(39,22);scanf("%s",md.categorie);
while (!ok) {
fflush(NULL);
gotoxy(39,24);scanf("%s",&md.prixKM);
for (i=0;i<strlen(md.prixKM);i++)
if (!isdigit(md.prixKM[i])) {
textcolor(1006);
gotoxy(40,6);cprintf("Erreur!!");
textcolor(7);
gotoxy(39,24);cprintf(".......");
break;
}
if (i==strlen(md.prixKM))
ok=1;
}
ok=0;


/*/////////////////// Date debut ///////////////////////////*/
Da:
gotoxy(20,26);cprintf("Date debut :.../../....");
gotoxy(39,26);scanf("%d",&j);
gotoxy(42,26);scanf("%d",&mo);
if(j>31)
{
gotoxy(30,39);cprintf("le jour ne doit pas passer 31");getch();
gotoxy(30,39);cprintf(" ");
goto Da;
}
if(mo>12)
{.
gotoxy(30,39);cprintf("le mois ne doit pas passer 12");getch();
gotoxy(,39);cprintf(" ");
goto Da;
}
if(mo==4||mo==6||mo==9||mo==11)
{
if(j>
{
gotoxy(30,39);cprintf("le mois %d ne doit pas passer 30",mo);getch();
gotoxy(30,39);cprintf(" ");
goto Da;
}
}
if(mo==2)
{
if(j>29)
{
gotoxy(30,39);cprintf("le mois %d ne doit pas dépasser 29",mo);getch();
gotoxy(30,39);cprintf(" ");
goto Da;
}
}
gotoxy(45,26);scanf("%d",&a);
itoa(j,cdd,10);
itoa(mo,cm,10);
itoa(a,ca,10);
strcat(cdd,"/");
strcat(cdd,cm);
strcat(cdd,"/");
strcat(cdd,ca);
strcpy(md.cd,cdd);
/*////////////////////// Fin Date /////////////////////////////*/

//gotoxy(39,30);scanf("%s",md.cd);
/*while (!oui) {
fflush(NULL);
gotoxy(39,32);scanf("%s",&md.quantitestock);
for (f=0;f<strlen(md.quantitestock);f++)
if (!isdigit(md.quantitestock[f])) {
textcolor(1006);
gotoxy(39,6);cprintf("Erreur!!");
textcolor(7);
gotoxy(39,32);cprintf(".......");
break;
}
if (f==strlen(md.quantitestock))
oui=1;
}
oui=0;*/

fprintf(fmd,"%s\t%s\t%s\t%s\n",mdc.matricule,&md.categorie,md.prixKM,md.cd);
}
rep=getchar();



gotoxy(10,34);printf("ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»");
gotoxy(10,35);printf("º voulez-vous ajouter un autre [O/N]: º");
gotoxy(10,36);printf("ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ");
gotoxy(54,35);scanf("%c",&rep);
}while (rep!='n');

fclose(fmd);
}


//****************************************************************************************//
void rechercher()
{ int b;
char rep;

clrscr();

fmd=fopen("c:\\camion.txt","r");
if(fmd==NULL)
{
gotoxy(20,23);printf(" *FICHIER ENIXISTANT!!!\a\a*");
getch();
flushall();
goto po;
}

c();
flushall();

gotoxy(23,7);printf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(23,8);printf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(23,9);printf("ÛÛ±± ±±ÛÛ");
gotoxy(23,10);printf("ÛÛ±± Rechercher ±±ÛÛ");
gotoxy(23,11);printf("ÛÛ±± ±±ÛÛ");
gotoxy(23,12);printf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(23,13);printf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");


gotoxy(13,19);printf(" Donner le num'ro ... rechercher[ ]");

gotoxy(50,19);scanf("%s",&mdc.matricule);
b=0;

while(!feof(fmd))
{
flushall();

fscanf(fmd,"%s\t%s\t%s\t%s\n",md.matricule,&md.categorie,md.prixKM,md.cd);


if(strcmpi(mdc.matricule,md.matricule)==0)
{
b=1;
break;
}
}
if(b==1)
{

textcolor(15);
interface();
gotoxy(23,7);printf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(23,8);printf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(23,9);printf("ÛÛ±± ±±ÛÛ");
gotoxy(23,10);printf("ÛÛ±±Voici le r'sultat de la recherche±±ÛÛ");
gotoxy(23,11);printf("ÛÛ±± ±±ÛÛ");
gotoxy(23,12);printf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(23,13);printf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");

gotoxy(39,16);printf("%s",md.matricule);
gotoxy(39,22);printf("%s",md.categorie);
gotoxy(39,24);printf("%s",md.prixKM);
gotoxy(39,26);printf("%s",md.cd);

getch();
}
else
{

gotoxy(20,23);printf(" *CODE INEXISTANT*!!!\a\a");
getch();
}

fclose(fmd);
po:

}


/****************************MODIFIER***************************************/
void modifier()
{

char q;
int ok = 0,oui=0,yes=0;
int i,f,v;
int j,mo,a;
char cdd[20],cm[3],ca[5];

clrscr();

fmd=fopen("c:\\medicame.txt","r");

if (fmd==NULL)
{

gotoxy(20,28);printf("*FICHIER ENIXISTANT!!!\a\a*");
getch();
exit(0);
}
tmp=fopen("c:\\tmp1.txt","w");
{
c();
gotoxy(23,7);printf( "ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(23,8);printf( "ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(23,9);printf( "ÛÛ±± ±±ÛÛ");
gotoxy(23,10);printf("ÛÛ±± Modifier ±±ÛÛ");
gotoxy(23,11);printf("ÛÛ±± ±±ÛÛ");
gotoxy(23,12);printf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(23,13);printf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");


gotoxy(16,28);printf("Numero ... modifier:[ ] ");


gotoxy(38,28);scanf("%s",&mdc.matricule);


b=0;

while(!feof(fmd))
{
flushall();
fscanf(fmd,"%s\t%s\t%s\t%s\t%s\t%s\t%s\n",&md.matricule,md.categorie,md.prixKM,md.utilisationjr,md.cd,md.quantitestock);

if(strcmpi(md.matricule,mdc.matricule)==0)
{
b=1;
break;
}
}
if(b==1)
{
clrscr();
interface();

gotoxy(23,7);printf( "ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
gotoxy(23,8);printf( "ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ ");
gotoxy(23,9);printf( "ÛÛ±± ±±ÛÛ");
gotoxy(23,10);printf("ÛÛ±±Voici le r'sultat de la modification ±±ÛÛ");
gotoxy(23,11);printf("ÛÛ±± ±±ÛÛ");
gotoxy(23,12);printf("ÛÛ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±ÛÛ");
gotoxy(23,13);printf("ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");

gotoxy(39,16);printf("%s",md.matricule);
gotoxy(39,22);printf("%s",md.categorie);
gotoxy(39,24);printf("%s",md.prixKM);
gotoxy(39,26);printf("%s",md.cd);


gotoxy(20,34);printf("*Taper entrer pour continuer*");
getch();
clrscr();
gotoxy(20,7);printf("Les nouvelles donn'es \n");
interface();
gotoxy(39,16);printf("%s",md.matricule);
//gotoxy(39,22);scanf("%s",md.matricule);
gotoxy(39,22);scanf("%s",md.categorie);
while (!ok) {
fflush(NULL);
gotoxy(39,24);scanf("%s",&md.prixKM);
for (i=0;i<strlen(md.prixKM);i++)
if (!isdigit(md.prixKM[i])) {
textcolor(1006);
gotoxy(40,6);cprintf("Erreur!!");
textcolor(7);
gotoxy(39,24);cprintf(".......");
break;
}
if (i==strlen(md.prixKM))
ok=1;
}
ok=0;


/*/////////////////// Date ///////////////////////////*/
Da:
gotoxy(20,26);cprintf("Datevalidite :.../../....");
gotoxy(39,26);scanf("%d",&j);
gotoxy(42,26);scanf("%d",&mo);
if(j>31)
{
gotoxy(30,39);cprintf("le jour ne doit pas passer 31");getch();
gotoxy(30,39);cprintf(" ");
goto Da;
}
if(mo>12)
{
gotoxy(30,39);cprintf("le mois ne doit pas passer 12");getch();
gotoxy(30,39);cprintf(" ");
goto Da;
}
if(mo==4||mo==6||mo==9||mo==11)
{
if(j>30)
{
gotoxy(30,39);cprintf("le mois %d ne doit pas passer 30",mo);getch();
gotoxy(30,39);cprintf(" ");
goto Da;
}
}
if(mo==2)
{
if(j>29)
{
gotoxy(30,39);cprintf("le mois %d ne doit pas dépasser 29",mo);getch();
gotoxy(30,39);cprintf(" ");
goto Da;
}
}
gotoxy(45,26);scanf("%d",&a);
itoa(j,cdd,10);
itoa(mo,cm,10);
itoa(a,ca,10);
strcat(cdd,"/");
strcat(cdd,cm);
strcat(cdd,"/");
strcat(cdd,ca);
strcpy(md.cd,cdd);
/*////////////////////// Fin Date /////////////////////////////*/

//gotoxy(39,30);scanf("%s",md.cd);

fclose(fmd);
flushall();
gotoxy(20,34);printf("voulez vous vraiment modifier ce num'ro (O/N): ");
gotoxy(66,34);scanf("%c",&q);
q=toupper(q);
if(q=='O')
{

f1=fopen("c:\\camion.txt","r");
while(!feof(f1))
{
flushall();
fscanf(f1,"%s\t%s\t%s\t%s\t%s\t%s\t%s\n",mdc.matricule,&mdc.matricule,mdc.categorie,mdc.prixKM);


if(strcmpi(md.matricule,mdc.matricule)==0)
fprintf(tmp,"%s\t%s\t%s\t%s\t%s\t%s\t%s\n",mdc.matricule,&md.matricule,md.categorie,md.prixKM,md.utilisationjr,md.cd,md.quantitestock);

else
fprintf(tmp,"%s\t%s\t%s\t%s\t%s\t%s\t%s\n",md.matricule,&md.matricule,md.categorie,md.prixKM,md.utilisationjr,md.cd,md.quantitestock);
}
fclose(f1);
fclose(tmp);
fmd=fopen("c:\\medicame.txt","w");
tmp=fopen("c:\\tmp1.txt","r");

while(!feof(tmp))
{
flushall();
fscanf(tmp,"%s\t%s\t%s\t%s\t%s\t%s\t%s\n",mdc.matricule,&md.matricule,md.categorie,md.prixKM,md.utilisationjr,md.cd,md.quantitestock);
fprintf(fmd,"%s\t%s\t%s\t%s\t%s\t%s\t%s\n",md.matricule,&md.matricule,md.categorie,md.prixKM,md.utilisationjr,md.cd,md.quantitestock);
}
fclose(fmd);
fclose(tmp);


}
}
else
{

gotoxy(24,28);printf("*CODE INEXISTANT*!!!\a\a");
getch();
}


}
}


//**********************************************************************************************//
void tabl_lister()
{ int r;
textcolor(7);gotoxy(2,6); cprintf("ÉÍËÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍËÍ»\n");
textcolor(7);gotoxy(2,7);cprintf("Ì͹=====================================

1 réponse

Messages postés
3829
Date d'inscription
dimanche 12 décembre 2004
Statut
Modérateur
Dernière intervention
8 janvier 2021
114
Bonjour.

Tu n'auras aucune réponse tant que:
- Tu n'auras pas corrigé les (innombrables) fautes d'orthographe et mot en "sms".
- Indenter ton code et le mettre dans des balises de code.
- Expliquer plus précisement ton problème (dire "ça ne fonctionne pas", ce n'est pas assez). Il faut décrire le comportement attendu et le comportement actuel.