IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

C Discussion :

erreurs bizarres de compilation du mon projet(sos)


Sujet :

C

  1. #1
    Candidat au Club
    Inscrit en
    Mars 2008
    Messages
    4
    Détails du profil
    Informations forums :
    Inscription : Mars 2008
    Messages : 4
    Points : 2
    Points
    2
    Par défaut erreurs bizarres de compilation du mon projet(sos)
    slut tout le monde,je suis etudiant en train de developer mon projet (distributeur automatiques de billets) j'ai presque finie de le terminer mais il me reste encore des erreurs qui m'ont gené beaucoups,j'ai trouvé de solutions,en effet je demande votre aides monsieurs,voila la code source :
    et voila mon email :walid2007@hotmail.com
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
     
    #include<conio.h>
    #include<stdio.h>
    #include<string.h>
    #include<dos.h>
    #include<time.h>pour l'apel de la fonction strcmpi
    #include<ctype.h>//pour l'apel de la fonction toupper
     
    #define per  "c:\\projet.txt"
     
    //declaratin des champs qui a utiliser
    typedef struct
    {
    char nom[15];
    char prenom[15];
    long code;
    long compte;
     int solde;
    }carte;
     
    void ajouter()
    {
     int indice;
     FILE *f;
     carte *fiche;
     clrscr();
     
           gotoxy(30,4);cprintf("Ajout d\'une fiche");
           gotoxy(22,11);cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿");
           gotoxy(22,12);cprintf("³ Nom    :                  ³");
           gotoxy(22,13);cprintf(" ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ");
           gotoxy(33,12);gets(fiche->nom);fiche->nom[0]=toupper(fiche->nom[0]);
           gotoxy(22,14);cprintf("³ Prenom :                  ³");
           gotoxy(22,15);cprintf(" ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ");
           gotoxy(33,14);gets(fiche->prenom);fiche->prenom[0]=toupper(fiche->prenom[0]);
           gotoxy(22,16);cprintf("³code    :                  ³");
             do{textcolor(10);gotoxy(3,47);cprintf("Dans le case de la code donner 4 chiffres");
         gotoxy(33,18);clreol();scanf("%ld",&fiche->code);
        }while((fiche->compte>9999)||(fiche->compte<0000));
           gotoxy(22,17);cprintf(" ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ");
           gotoxy(22,18);cprintf("³ compte  :                  ³");
           gotoxy(22,19);cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ");
     
      do{textcolor(10);gotoxy(2,47);cprintf("Dans le case de la code donner 8 chiffres");
         gotoxy(33,18);clreol();scanf("%ld",&fiche->compte);
        }while((fiche->compte>99999999)||(fiche->compte<0000000));
           gotoxy(22,20);cprintf(" ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ");
           gotoxy(22,21);cprintf("³ SOLDE :                  ³");
           gotoxy(22,22);cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ");
                        scanf("%d",&fiche->solde);
     
     if(!(f=fopen(per,"rb+")))
     
     {
      f=fopen(per,"wb");
      fiche->code=1;
      fwrite(fiche,sizeof(carte),1,f);
             textcolor(1); gotoxy(20,24);cprintf("ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»");
      textcolor(10); gotoxy(20,25);cprintf("º       Ajoute Avec Succes       º");
      textcolor(1); gotoxy(20,26);cprintf("ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ");
     
      delay(3000);
     
            }
     else
     {  indice=max(fiche->code);
     
        if(indice==-1)
      {textcolor(LIGHTRED);gotoxy(2,47);cprintf("Remarque :");
      textcolor(10);
      gotoxy(12,47);cprintf("Le personne saisi deja enregistrer, ");
      gotoxy(48,47);cprintf("Verifier code   ");
      delay(4000);
       }
       else
      {
      fiche->compte=indice+1;
      fseek(f,0,2);
      fwrite(fiche,sizeof(carte),1,f);
      textcolor(1); gotoxy(20,24);cprintf("ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»");
      textcolor(10); gotoxy(20,25);cprintf("º       Ajoute Avec Succes       º");
      textcolor(1); gotoxy(20,26);cprintf("ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ");
     
      delay(3000);
      }
     }
    fflush(f);fclose(f);
    }
     
    int max(long c)
    {
     int m=0;
     FILE *f;
     carte fiche;
     f=fopen(per,"rb");
     while (fread(&fiche,sizeof(carte),1,f))
     {
      if(fiche.code==c)
      return(-1);
      if(fiche.compte>m)
      m=fiche.compte;
     }
     return (m);
    }
     
     
     
     
     
     
     
     
     
     
    int verif_ncompte()
    {
    FILE *f;
    carte fiche;
    char trouve;
    long compte;
    int existe=0;
     
    f=fopen(per,"rb");
           gotoxy(22,11);cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿");
           gotoxy(22,12);cprintf("³numero de compte  :  ³");
           gotoxy(22,13);cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ");
           do{  
         gotoxy(34,12);clreol();scanf("%ld",&compte);flushall();
        }while((compte>99999999)||(compte<00000000));
     
           gotoxy(22,25);printf("Compte a retouver.\n\n");delay(500);
           gotoxy(22,25);printf("Compte a retouver..\n\n");delay(500);
           gotoxy(22,25);printf("Compte a retouver...\n\n");delay(500);
           gotoxy(22,25);printf("Compte a retouver....\n\n");delay(500);
           gotoxy(22,25);printf("Compte a retouver.....\n\n");delay(500);
           gotoxy(22,25);printf("Compte a retouver......\n\n");delay(500);
           gotoxy(22,25);printf("Compte a retouver.......\n\n");delay(500);
     
     
     
    while ((fread(&fiche,sizeof(carte),1,f)!=0)&&(trouve==0))
      {
       if(fiche.compte==compte)
            existe=1;
     trouve=ftell(f);
      }
       if(trouve==0)
           {
     textcolor(1); gotoxy(20,24);cprintf("ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»");
     textcolor(10); gotoxy(20,25);cprintf("º   Ce compte n'existe pas     º");
     textcolor(1); gotoxy(20,26);cprintf("ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ");
     textcolor(10+BLINK);gotoxy(42,47);cprintf("Tapper une touche pour revenir au menu");
     textcolor(2);gotoxy(12,47);cprintf("verifiez votre numero de compte." );
      getch();}
       fclose(f);
        return(trouve-sizeof(carte));
     
    }
     
     
     
     
     
    int verif_motpasse()
    {
    FILE *f;
    carte fiche;
    int existe1=0;
    char trouve1;
    long code;
     
    f=fopen(per,"rb");
           gotoxy(22,11);cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿");
           gotoxy(22,12);cprintf("³code  :             ³");
           gotoxy(22,13);cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ");
           do{  
         gotoxy(34,12);clreol();scanf("%ld",&code);flushall();
        }while((code>9999)||(code<0000));
     
           gotoxy(22,25);printf("Compte a retouver.\n\n");delay(500);
           gotoxy(22,25);printf("Compte a retouver..\n\n");delay(500);
           gotoxy(22,25);printf("Compte a retouver...\n\n");delay(500);
           gotoxy(22,25);printf("Compte a retouver....\n\n");delay(500);
           gotoxy(22,25);printf("Compte a retouver.....\n\n");delay(500);
           gotoxy(22,25);printf("Compte a retouver......\n\n");delay(500);
           gotoxy(22,25);printf("Compte a retouver.......\n\n");delay(500);
     
     
     
    while ((fread(&fiche,sizeof(carte),1,f)!=0)&&(trouve1==0))
      {
       if(fiche.code==code)
            existe1=1;
     trouve1=ftell(f);
      }
       if(trouve==0)
           {
     textcolor(1); gotoxy(20,24);cprintf("ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»");
     textcolor(10); gotoxy(20,25);cprintf("º   Ce compte n'existe pas     º");
     textcolor(1); gotoxy(20,26);cprintf("ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ");
     textcolor(10+BLINK);gotoxy(42,47);cprintf("Tapper une touche pour revenir au menu");
     textcolor(2);gotoxy(12,47);cprintf("verifiez votre code." );
      getch();}
       fclose(f);
        return(trouve1-sizeof(carte));
     
    }
     
     
     
    void consulter()
     
    {
    char c;
    int x;
    carte *fiche;
    FILE *f;
    f=fopen(per,"rb");
     
     
     
     
     
    gotoxy(30,4);cprintf("Consultation de solde");
    x=verif_motpasse();
    if (x>=0)
        {
         fseek(f,x,0);
         fread(fiche,sizeof(carte),1,f);
    do{ gotoxy(12,47);cprintf("Tapper 1 pour retrait de solde ou S  pour Sortie." );
     
           gotoxy(22,20);printf("votre solde est:%d",fiche.solde)
           gotoxy(22,24);printf("       ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»");
           gotoxy(22,25);printf("       º Votre choix :   º");
           gotoxy(22,26);printf("       ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ");
     
    do{  gotoxy(45,25);
      scanf("%c",&c);flushall();
       while((c!='R')&&(c!='s'));
     
          switch (c)
     
         case 'R' : { 
             retrait();
        break;
             }
     
    }while(c!='s');
      fseek(f,x,0);
       fwrite(fiche,sizeof(carte),1,f);
        fclose(f);
     
        }
     
    void retrait()
    {
    char c;
    int x,m;
    carte *fiche;
    FILE *f;
    f=fopen(per,"rb+");
     
    gotoxy(30,4);cprintf("Retrait de solde");
    x=verif_motpasse();
    if (x>=0)
        {
         fseek(f,x,0);
         fread(fiche,sizeof(carte),1,f);
         printf("ENTREZ LE MONTANT: ");
         scanf("%d\n",&m);flushall();
             if (client.solde>= m )
                      { fiche.solde= fiche.solde - m;
                        printf("Operations effectuee Avec Succee: ");
                         fseek(f,x,0);
                  fwrite(fiche,sizeof(carte),1,f);            
                       }
              else
                {
     
                     printf("Solde insuffisant Pour Effectuer cette Operations ");
     
                 }
    fclose(f);
    void virement()
    {
     
    int x,m;
    carte *fiche;
    FILE *f;
     
     
     
    f=fopen(per,"rb+");
     
     
    f=fopen(per,"rb");
           gotoxy(22,11);cprintf("ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿");
          gotoxy(22,12);cprintf("³numero de 2 emme compte:³");
           gotoxy(22,13);cprintf("ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ");
           do{  
         gotoxy(34,12);clreol();scanf("%ld",&compte);flushall();
        }while((compte>99999999)||(compte<00000000));
     
    while ((fread(&fiche,sizeof(carte),1,f)!=0)
    {
       if(fiche.compte==compte)
     
    printf("Entrer le montant à transferer: ");
    scanf("%f\n",&m);
    flushall();
    rewind(f);
    }
      {
            x=verif_motpasse();
        if (x>=0)
        {
         fseek(f,x,0);
         fread(&fiche,sizeof(carte),1,f);
           if (fiche.solde>= m )
     
               fiche.solde= fiche.solde - m;
               fwrite(&fiche,sizeof(fiche),1,f);
               rewind(f);
          else
               printf("Solde insuffisant Pour Effectuer cette Operations: ");
         }
       }  
    {
      fread(&fiche,sizeof(fiche),1,f);
        while ((fread(&fiche,sizeof(fiche),1,f)!=0)&& ( fiche.compte!=compte ))
           fiche.solde= fiche.solde + m;
      fwrite(&fiche,sizeof(fiche),1,f);
    printf("Operatios effectuée Avec Succée !: ");
    }
    fclose(f);
    }
    void menu()
    {
     
    char choix;
    do
      {_setcursortype(_SOLIDCURSOR);
       clrscr();
        textcolor(123);
        cprintf("ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»");
        cprintf("ºDistributeur automatique de blletsº");
        cprintf("ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹");
     
        for(int i=0;i<43;i++)
      { cprintf("º                                                                              º");}
     
        cprintf("ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹");
        cprintf("º                                                                              º");
        cprintf("ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ");
     
       gotoxy(20,18);printf("ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÉÍÍÍ»");
       gotoxy(20,19);printf("º       COSULTATION DE SOLDE      º   º");
       gotoxy(20,20);printf("ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͺÍÍ͹");
       gotoxy(20,21);printf("º       RETRAIT DE SOLDE          º   º");
       gotoxy(20,22);printf("ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͺÍÍ͹");
       gotoxy(20,23);printf("º       VIREMENT                  º   º");
       gotoxy(20,24);printf("ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͺÍÍ͹");
       gotoxy(20,25);printf("º       SORTIE                    º s º");
       gotoxy(20,26);printf("ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͺÍÍ͹");
       gotoxy(20,27);cprintf("º                                 º   º");
       gotoxy(20,28);printf("ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ");
       textcolor(12+BLINK);gotoxy(30,31);cprintf("VOTRE CHOIX :");
       for(i=6;i<=6;i++)
           {gotoxy(58,19);textcolor(i);cprintf("1");delay(100);
     gotoxy(58,21);textcolor(i);cprintf("2");delay(100);
     gotoxy(58,23);textcolor(i);cprintf("3");delay(100);
     gotoxy(58,25);textcolor(i);cprintf("4");delay(100);
     gotoxy(58,27);textcolor(i);cprintf("5");delay(100);}
     textcolor(10);gotoxy(3,48);cprintf("Donner un Numero de 1 a 3 pour exucuter le fonction et Tapper   pour Sortie." );
     textcolor(4);gotoxy(65,48);cprintf("S");textcolor(4);
     
       gotoxy(58,31);scanf("%c",&choix);flushall();
     
        switch(choix)
         {
          case '1':{clrscr();_setcursortype(_NORMALCURSOR);consulter();break;}
          case '2':{clrscr();_setcursortype(_NORMALCURSOR);retrait();break;}
          case '3':{clrscr();_setcursortype(_NORMALCURSOR);virement();break;}
     
     
         }
      }while((choix!='s')&&(choix!='S'));
    }
     
    void main()
    {
    FILE *fichier;
     
    int existe;
    void ajouter();
    do
    {
    verif_ncompte();
    verifier_ncompte();
    }
    while (existe==1);
    do
    {
     
    verif_motpasse();
    }
    while (existe1==1);
    do
    {
     menu();
     
    }

  2. #2
    Rédacteur

    Avatar de ram-0000
    Homme Profil pro
    Consultant en sécurité
    Inscrit en
    Mai 2007
    Messages
    11 517
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 61
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Consultant en sécurité
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Mai 2007
    Messages : 11 517
    Points : 50 367
    Points
    50 367
    Par défaut
    Une remarque en passant : le but d'un forum, c'est de partager son expérience et ses résultats dans un espace public afin que les autres puissent aussi en profiter pour apprendre ou pour contribuer. Le but n'est pas de passer sur messagerie privée le plus vite possible.

    Ceci dit, c'est quoi tes erreurs ou tes problèmes ?
    Raymond
    Vous souhaitez participer à la rubrique Réseaux ? Contactez-moi

    Cafuro Cafuro est un outil SNMP dont le but est d'aider les administrateurs système et réseau à configurer leurs équipements SNMP réseau.
    e-verbe Un logiciel de conjugaison des verbes de la langue française.

    Ma page personnelle sur DVP
    .

  3. #3
    Candidat au Club
    Inscrit en
    Mars 2008
    Messages
    4
    Détails du profil
    Informations forums :
    Inscription : Mars 2008
    Messages : 4
    Points : 2
    Points
    2
    Par défaut urgent: erreurs compilation
    slt merci de te passer a lire mon message
    mais j'ai de probleme de compilation pour exucuter mon programme de projet ,mon soustenance est ce lundi et je cherche votre aide
    merci infinement

  4. #4
    Expert éminent sénior
    Avatar de diogene
    Homme Profil pro
    Enseignant Chercheur
    Inscrit en
    Juin 2005
    Messages
    5 761
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Essonne (Île de France)

    Informations professionnelles :
    Activité : Enseignant Chercheur
    Secteur : Enseignement

    Informations forums :
    Inscription : Juin 2005
    Messages : 5 761
    Points : 13 926
    Points
    13 926
    Par défaut
    Citation Envoyé par bigboss06 Voir le message
    slt merci de te passer a lire mon message
    mais j'ai de probleme de compilation pour exucuter mon programme de projet ,mon soustenance est ce lundi et je cherche votre aide
    merci infinement
    Soit plus précis :
    Quels sont les messages d'erreurs (et d'avertissements) donnés par le compilateur ?
    Publication : Concepts en C

    Mon avatar : Glenn Gould

    --------------------------------------------------------------------------
    Une réponse vous a été utile ? Remerciez son auteur en cliquant le pouce vert !

  5. #5
    Candidat au Club
    Inscrit en
    Mars 2008
    Messages
    4
    Détails du profil
    Informations forums :
    Inscription : Mars 2008
    Messages : 4
    Points : 2
    Points
    2
    Par défaut voila les erreurs
    le programme est presque finie mais il ya presque 3 erreurs qui m'ont rend fou
    es erreurs sont:
    declaration is not allowed here
    'existe' is assigned a value never used
    'existe1' is assigned a value never used
    do while statment erreur
    .... en bref j'ai des problemes au fonction principale void main(); je sais pas comment exactement comment faire l'appel de la variable existe et existe1 pour l'utiliser au void main();
    je vois qu 'il faut le voir directement sur c c'est plus precis et claire je crois
    merci infinement

  6. #6
    Rédacteur

    Avatar de ram-0000
    Homme Profil pro
    Consultant en sécurité
    Inscrit en
    Mai 2007
    Messages
    11 517
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 61
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Consultant en sécurité
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Mai 2007
    Messages : 11 517
    Points : 50 367
    Points
    50 367
    Par défaut
    De manière générale, l'indentation n'est pas faite. Si elle était faite, tu aurais trouvé ces erreurs depuis longtemps.

    De plus, en règle générale, on met 1 instruction par ligne (mais il y a parfois des dérogations utiles)

    Vu le tas d'erreur que j'ai trouvé, je ne pense pas que ton programme soit presque terminé

    Tu es sûr que sa compile sans erreurs ni warnings car moi ici, il y a eu une pelletée d'erreurs et warnings

    Les erreurs que j'ai trouvé
    -------------------------

    Manque la marque de commentaire. De plus, strcmpi n'est pas déclaré dans time.h
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    #include<time.h>pour l'apel de la fonction strcmpi
    Dans la fonction consulter()
    La variable fiche n'est pas un pointeur sur carte mais un objet carte
    modification de la lecture en passant l'adresse de la variable fiche
    manque un ; après le printd
    modification de l'écriture en passant l'adresse de la variable fiche
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
    carte fiche;
    ...
         fread(&fiche,sizeof(carte),1,f);
    ...
          gotoxy(22,20);printf("votre solde est:%d",fiche.solde);
    ...
       fwrite(&fiche,sizeof(carte),1,f);
    Dans la fonction consulter() toujours elle, il manque une accollade fermante juste avant
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    while((c!='R')&&(c!='s'));
    Manque une accollade ouvrante juste après le switch
    Una accollade ouvrante en trop juste après le case
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    case 'R' :
    { 
    retrait();
    break;
    Manque une accolade fermante à la fin de la fonction
    Manque 2 accolades fermantes juste à la fin de la fonction retrait()

    Dans la fonction retrait() même problème que dans consulter
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    carte fiche;
    ...
         fread(&fiche,sizeof(carte),1,f);
    ...
       fwrite(&fiche,sizeof(carte),1,f);
    dans la fonction retrait(), la variable "client" n'existe pas, je mettrai plutôt "fiche" mais je ne sais pas ce que tu veux faire

    dans la fonction virement(), c'est un gros bazar, manque des accollade et là, je ne sais pas les inventer

    dans la fonction main(), appel à la fonction verifier_ncompte() qui n'existe pas

    ensuite, il te reste 3 variables non déclarées à régler
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    error C2065: 'trouve'*: identificateur non déclaré
    error C2065: 'i'*: identificateur non déclaré
    error C2065: 'existe1'*: identificateur non déclaré
    Raymond
    Vous souhaitez participer à la rubrique Réseaux ? Contactez-moi

    Cafuro Cafuro est un outil SNMP dont le but est d'aider les administrateurs système et réseau à configurer leurs équipements SNMP réseau.
    e-verbe Un logiciel de conjugaison des verbes de la langue française.

    Ma page personnelle sur DVP
    .

Discussions similaires

  1. Erreur lors du lancement de mon projet
    Par routnic dans le forum C++Builder
    Réponses: 2
    Dernier message: 30/10/2012, 14h18
  2. erreur bizarre lors l'execution de mon projet
    Par info_sara dans le forum Qt
    Réponses: 2
    Dernier message: 26/06/2010, 10h23
  3. Message d'erreur bizarre à la compilation
    Par Alfred456654 dans le forum C
    Réponses: 8
    Dernier message: 22/04/2010, 12h22
  4. Erreur empechant la compilation de mon projet silverlight 4
    Par maxwel56 dans le forum Silverlight
    Réponses: 4
    Dernier message: 20/01/2010, 16h44
  5. [PAIR] Erreur bizarre à la compilation
    Par Anthony.Desvernois dans le forum SL & STL
    Réponses: 3
    Dernier message: 07/02/2008, 15h56

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo