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

Algorithmes et structures de données Discussion :

aide fiche de stock mensuelle


Sujet :

Algorithmes et structures de données

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Nouveau candidat au Club
    Inscrit en
    Août 2008
    Messages
    1
    Détails du profil
    Informations forums :
    Inscription : Août 2008
    Messages : 1
    Par défaut aide fiche de stock mensuelle
    jé eu un probleme concernant un programme en free pascal d'une fiche de stock
    mais j'ai eu un probleme lors du calcule du total des entrées et des sorties et du nouveau stock dans la procedure affichage .s'il vous plait je serai ravi si quelqu'un peut m'aider le plutot possible
    voila le programme
    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
    uses crt;
     
    type
         stock= record
     
         date:string[8];
         des:string[16];
         ent:real;
         sort:real;
         stock:real;
         numbon:integer;
     
         end;
     
         Fstock=file of stock;
     
         var
             p:stock;
             F:Fstock;
     
    procedure creation1 ;
       var rep:char;
       begin
       {$I-}
       reset (F);
       if ioresult <>0 then
        begin
        rewrite(F);
        repeat
        clrscr;
     
         gotoxy(03,03);write('ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»');
         gotoxy(03,04);write('ºÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛº');
         gotoxy(03,05);write('ºÛ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ Ûº');
         gotoxy(03,06);write('ºÛ ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ Ûº');
         gotoxy(03,07);write('ºÛ ³±                                                    ±³ Ûº');
         gotoxy(03,08);write('ºÛ ³±                ***   Nouveau  ***                  ±³ Ûº');
         gotoxy(03,09);write('ºÛ ³±              ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ               ±³ Ûº');
         gotoxy(03,10);write('ºÛ ³±                                                    ±³ Ûº');
         gotoxy(03,11);write('ºÛ ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ Ûº');
         gotoxy(03,12);write('ºÛ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ Ûº');
         gotoxy(03,13);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,14);write('ºÛ ³ *  Date            : ................                ³ Ûº');
         gotoxy(03,15);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,16);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,17);write('ºÛ ³ *  Designation     : ................                ³ Ûº');
         gotoxy(03,18);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,19);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,20);write('ºÛ ³ *  Entr‚es         : ................                ³ Ûº');
         gotoxy(03,21);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,22);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,23);write('ºÛ ³ *  Sorties         : ................                ³ Ûº');
         gotoxy(03,24);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,25);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,26);write('ºÛ ³ *  Nø de bon       : ................                ³ Ûº');
         gotoxy(03,27);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,28);write('ºÛ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ Ûº');
         gotoxy(03,29);write('ºÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛº');
         gotoxy(03,30);write('ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ');
         textcolor(yellow);
         gotoxy(31,14);readln(p.date);
         textcolor(yellow);
         gotoxy(31,17);readln(p.des);
         textcolor(yellow);
         gotoxy(31,20);readln(p.ent);
         textcolor(yellow);
         gotoxy(31,23);readln(p.sort);
         textcolor(lightred);
         gotoxy(31,26);readln(p.numbon);
         textcolor(white);
             Write(F,p);
         gotoxy(12,33);write('ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»');
         gotoxy(12,34);write('º±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±º');
         gotoxy(12,35);write('º±                             ÚÄÄÄ¿   ±º');
         gotoxy(12,36);write('º±   Autre Produit (o/n)?  :   ³   ³   ±º');
         gotoxy(12,37);write('º±                             ÀÄÄÄÙ   ±º');
         gotoxy(12,38);write('º±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±º');
         gotoxy(12,39);write('ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ');
         textcolor(green);
         gotoxy(45,36);readln(Rep);
     
        Until rep in ['n','N'];
        textcolor(white);
        Close(F);
        End
        else
        begin
        repeat
        read(f,p);
           until eof(f);
           repeat
     
           clrscr;
         gotoxy(03,03);write('ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»');
         gotoxy(03,04);write('ºÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛº');
         gotoxy(03,05);write('ºÛ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ Ûº');
         gotoxy(03,06);write('ºÛ ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ Ûº');
         gotoxy(03,07);write('ºÛ ³±                                                    ±³ Ûº');
         gotoxy(03,08);write('ºÛ ³±                ***   Nouveau  ***                  ±³ Ûº');
         gotoxy(03,09);write('ºÛ ³±              ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ               ±³ Ûº');
         gotoxy(03,10);write('ºÛ ³±                                                    ±³ Ûº');
         gotoxy(03,11);write('ºÛ ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ Ûº');
         gotoxy(03,12);write('ºÛ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ Ûº');
         gotoxy(03,13);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,14);write('ºÛ ³ *  Date            : ................                ³ Ûº');
         gotoxy(03,15);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,16);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,17);write('ºÛ ³ *  designation     : ................                ³ Ûº');
         gotoxy(03,18);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,19);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,20);write('ºÛ ³ *  entr‚es         : ................                ³ Ûº');
         gotoxy(03,21);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,22);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,23);write('ºÛ ³ *  sorties         : ................                ³ Ûº');
         gotoxy(03,24);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,25);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,26);write('ºÛ ³ *  Nø de bon       : ................                ³ Ûº');
         gotoxy(03,27);write('ºÛ ³                                                      ³ Ûº');
         gotoxy(03,28);write('ºÛ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ Ûº');
         gotoxy(03,29);write('ºÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛº');
         gotoxy(03,30);write('ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ');
     
     
         textcolor(yellow);
         gotoxy(31,14);readln(p.date);
         textcolor(yellow);
         gotoxy(31,17);readln(p.des);
         textcolor(yellow);
         gotoxy(31,20);readln(p.ent);
         textcolor(yellow);
         gotoxy(31,23);readln(p.sort);
         textcolor(lightred);
         gotoxy(31,26);readln(p.numbon);
         textcolor(white);
     
     
     
             Write(F,p);
         gotoxy(12,33);write('ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»');
         gotoxy(12,34);write('º±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±º');
         gotoxy(12,35);write('º±                             ÚÄÄÄ¿   ±º');
         gotoxy(12,36);write('º±   Autre Produit (o/n)?  :   ³   ³   ±º');
         gotoxy(12,37);write('º±                             ÀÄÄÄÙ   ±º');
         gotoxy(12,38);write('º±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±º');
         gotoxy(12,39);write('ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ');
         gotoxy(45,36);readln(Rep);
     
        Until rep in ['n','N'];
        close(f);
        End;
        End;
     
     
     
    procedure affichage1;
     var i:integer;
         totent:real;
         stock:real;
         ancstock:real;
     
     
     
            begin
            repeat
            clrscr;
     
            reset (F);
     
    gotoxy(01,03);write('  ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»      ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»     ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» ');
    gotoxy(01,04);write('  º   Article: Cocacola º      º Fiche de stockº     º Ancien stock:..........º  ');
    gotoxy(01,05);write('  ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ      ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ     ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ  ');
    gotoxy(01,06);write('                                                                                ');
    gotoxy(01,07);write('  ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ');
    gotoxy(01,08);write('  ÛÉÍÍÍÍÍÍÍÍÍÍÍËÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍËÍÍÍÍÍÍÍÍÍÍÍËÍÍÍÍÍÍÍÍÍËÍÍÍÍÍÍÍÍËÍÍÍÍÍÍÍÍÍÍÍ»Û');
    gotoxy(01,09);write('  Ûº   date    º  D‚signaton   º entr‚es   º sorties º stock  º nøde bon  ºÛ');
    gotoxy(01,10);write('  ÛÌÍÍÍÍÍÍÍÍÍÍÍÎÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÎÍÍÍÍÍÍÍÍÍÍÍÎÍÍÍÍÍÍÍÍÍÎÍÍÍÍÍÍÍÍÎÍÍÍÍÍÍÍÍÍÍ͹Û');
    textcolor(lightgreen);
     
    gotoxy(70,04);readln(ancstock);
    i:=11;
       repeat
      read(f,p);
     
            gotoxy(03,i);write('Ûº');
            textcolor(yellow);
            gotoxy(06,i);writeln(p.date);
            gotoxy(16,i);write('º');
            textcolor(yellow);
            gotoxy(17,i);writeln(p.des);
            gotoxy(32,i);write('º');
            textcolor(yellow);
            gotoxy(33,i);writeln(p.ent:2:2);
            gotoxy(44,i);write('º');
            textcolor(yellow);
            gotoxy(45,i);writeln(p.sort:2:2);
            gotoxy(54,i);write('º');
            stock:=ancstock+(p.ent-p.sort);
            textcolor(lightgreen);
            gotoxy(56,i);writeln(stock:2:2);
            gotoxy(63,i);write('º');
            textcolor(lightcyan);
            gotoxy(64,i);writeln(p.numbon);
            gotoxy(75,i);write('ºÛ');
            textcolor(white);
     
            i:=i+1;
            until (i=40)or (eof(f));
            if (i=40) or (eof(f)) then
            begin
     
     gotoxy(01,i);write('  ÛÈÍÍÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍÊÍÍÍÍÍÍÍÍÊÍÍÍÍÍÍÍÍÍÍͼÛ');
     gotoxy(03,i+1);write('ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ');
     
     
            gotoxy(03,i+4);write('Total des entr‚es :........');
            gotoxy(03,i+6);write('Total des sorties :........');
            gotoxy(03,i+8);write('Nouveau stock     :........');
     
            totent:=(p.ent)+(p.ent);
            gotoxy(23,i+4);writeln(totent :2:2);
            gotoxy(03,i+10);write('Taper entrer pour continuer ');
            readln;
     
            END;
            Until eof(f);
            end;
     
     
     
     
        procedure menucocacola;
       var choix:integer;
           rep:char;
       begin
       clrscr;
     
     
     
     
    gotoxy(24,09);write('      ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»         ');
    gotoxy(24,10);write('      º°²°²°²°²°²°²°²°²°²°²°²°²º         ');
    gotoxy(24,11);write('      º°                      °º         ');
    gotoxy(24,12);write('      º°      COCACOLA        °º         ');
    gotoxy(24,13);write('      º°²°²°²°²°²°²°²°²°²°²°²°²º         ');
    gotoxy(24,14);write('      ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹         ');
    gotoxy(24,15);write('      º±   1/ Creer           ±º         ');
    gotoxy(24,16);write('      º±                      ±º         ');
    gotoxy(24,17);write('      ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹         ');
    gotoxy(24,18);write('      º±   2/ Rechercher      ±º         ');
    gotoxy(24,19);write('      º±                      ±º         ');
    gotoxy(24,20);write('      ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹         ');
    gotoxy(24,21);write('      º±   3/ Lister          ±º         ');
    gotoxy(24,22);write('      º±                      ±º         ');
    gotoxy(24,23);write('      ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹         ');
    gotoxy(24,24);write('      º±   4/ Modifier        ±º         ');
    gotoxy(24,25);write('      º±                      ±º         ');
    gotoxy(24,26);write('      ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹         ');
    gotoxy(24,27);write('      º±   5/ Retour au menu  ±º         ');
    gotoxy(24,28);write('      ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ         ');
    gotoxy(24,29);write('                                         ');
    gotoxy(24,30);write('      ±±±±±±±±±±±±±±±±±±±±±±±±±±         ');
    gotoxy(24,31);write('      ±                     ÚÄ¿±         ');
    gotoxy(24,32);write('      ± Taper votre choix:  ³ ³±         ');
    gotoxy(24,33);write('      ±                     ÀÄÙ±         ');
    gotoxy(24,34);write('      ±±±±±±±±±±±±±±±±±±±±±±±±±±         ');
    textcolor(yellow);
    gotoxy(53,32);readln(choix);
    textcolor(white);
      case choix of
     
        1:begin creation1;menucocacola;end;
        2:begin recherche1;menucocacola;end;
        3:begin affichage1;menucocacola;end;
        4:begin modification1;menucocacola;end;
     
     
    end;
    end;
     
    procedure menuboissons;
    var choix :integer;
    begin
    textbackground(9);
    clrscr;
    textcolor(lightcyan);
    gotoxy(24,08);write('    ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»  ');
    gotoxy(24,09);write('    º²²°²°²°²°²°²°²°²°²°²°²°º  ');
    gotoxy(24,10);write('    º²                     °º  ');
    gotoxy(24,11);write('    º²     BOISSONS        °º  ');
    gotoxy(24,12);write('    º²                     °º  ');
    gotoxy(24,13);write('    º²²°²°²°²°²°²°²°²°²°²°²°º  ');
    gotoxy(24,14);write('    ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹  ');
    gotoxy(24,15);write('    º²                     ²º  ');
    gotoxy(24,16);write('    º²   1-Cocacola        ²º  ');
    gotoxy(24,17);write('    º²   2-Cocalight       ²º  ');
    gotoxy(24,18);write('    º²   3-Fanta           ²º  ');
    gotoxy(24,19);write('    º²   4-Fanta citron    ²º  ');
    gotoxy(24,20);write('    º²   5-Tonic           ²º  ');
    gotoxy(24,21);write('    º²   6-Tonic citron    ²º  ');
    gotoxy(24,22);write('    º²   7-Poms            ²º  ');
    gotoxy(24,23);write('    º²   8-Hawai           ²º  ');
    gotoxy(24,24);write('    º²   9-Sprite          ²º  ');
    gotoxy(24,25);write('    º²   10-Caf‚           ²º  ');
    gotoxy(24,26);write('    º²   11-Ainsaiss 1/2   ²º  ');
    gotoxy(24,27);write('    º²   12-Ainsaiss 3/2   ²º  ');
    gotoxy(24,28);write('    º²   13-Bonaqua 1/2    ²º  ');
    gotoxy(24,29);write('    º²   14-Bonaqua 1L     ²º  ');
    gotoxy(24,30);write('    º²   15-Casablanca     ²º  ');
    gotoxy(24,31);write('    º²   16-Heineken       ²º  ');
    gotoxy(24,32);write('    º²   17-Flag special   ²º  ');
    gotoxy(24,33);write('    º²   18-Sirop grenadine²º  ');
    gotoxy(24,34);write('    º²   19-Sirop menth    ²º  ');
    gotoxy(24,35);write('    º²   20-Jus d''anannas  ²º  ');
    gotoxy(24,36);write('    º²   21-Jus de tomates ²º  ');
    gotoxy(24,37);write('    º²                     ²º  ');
    gotoxy(24,38);write('    ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ  ');
    gotoxy(24,39);write('                      ÚÄÄÄ¿    ');
    gotoxy(24,40);write('    Taper votre choix:³   ³    ');
    gotoxy(24,41);write('                      ÀÄÄÄÙ    ');
     
    textcolor(yellow);
    gotoxy(24,44);readln(choix);
    textcolor(white);
     case choix of
     
     1:begin menucocacola;menuboissons;end;
     end;
     End;
     
     
     
     
    procedure menu;
     
     var choix:integer;
       begin
       textbackground(1);
       clrscr;
     
         gotoxy(24,03);write('ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»');
         gotoxy(24,04);write('º±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±º');
         gotoxy(24,05);write('º±ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿±º');
         gotoxy(24,06);write('º±³     *   Menu Principal  *    ³±º');
         gotoxy(24,07);write('º±³     ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ    ³±º');
         gotoxy(24,08);write('º±ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´±º');
         gotoxy(24,09);write('º±³                              ³±º');
         gotoxy(24,10);write('º±³     1-ALIMENTATIONS          ³±º');
         gotoxy(24,11);write('º±³                              ³±º');
         gotoxy(24,12);write('º±³     2-BOISSONS               ³±º');
         gotoxy(24,13);write('º±³                              ³±º');
         gotoxy(24,14);write('º±³     3-VINS                   ³±º');
         gotoxy(24,15);write('º±³                              ³±º');
         gotoxy(24,16);write('º±³                              ³±º');
         gotoxy(24,17);write('º±ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ±º');
         gotoxy(24,18);write('º±                          ÚÄÄÄ¿ ±º');
         gotoxy(24,19);write('º± Taper votre choix SVP :  ³   ³ ±º');
         gotoxy(24,20);write('º± ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ  ÀÄÄÄÙ ±º');
         gotoxy(24,21);write('º±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±º');
         gotoxy(24,22);write('ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ');
     
     
         textcolor(yellow);
         gotoxy(36,06);write('MENU PRINCIPAL');
         textcolor(lightred);
         gotoxy(34,10);write('ALIMENTATIONS');
         textcolor(lightcyan);
         gotoxy(34,12);write('BOISSONS');
         textcolor(lightgreen);
         gotoxy(34,14);write('VINS');
         textcolor(yellow);
     
         gotoxy(54,19);readln(choix);
         textcolor(white);
       case choix of
     
       2:begin menuboissons;menu;end;
       3:begin menuvins;menu;end;
       end;
     
       end;
     
     
     
       begin
       assign(F,'e:\fstock.dat');
       menu;
       close(f);
       end.

  2. #2
    Expert confirmé
    Avatar de PRomu@ld
    Homme Profil pro
    Ingénieur de Recherche
    Inscrit en
    Avril 2005
    Messages
    4 155
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Vienne (Poitou Charente)

    Informations professionnelles :
    Activité : Ingénieur de Recherche
    Secteur : Enseignement

    Informations forums :
    Inscription : Avril 2005
    Messages : 4 155
    Par défaut
    Est-ce que tu penses que ton problème est liée au langage ou bien d'algorithmique.

Discussions similaires

  1. Aide pour procedure stocké sous sqlserver 2005
    Par poluxien dans le forum MS SQL Server
    Réponses: 0
    Dernier message: 15/01/2010, 20h03
  2. AIde sur Procédure Stockée (paramètres)
    Par yocquet dans le forum Développement
    Réponses: 9
    Dernier message: 09/10/2009, 09h25
  3. fiche de stock
    Par bosk1000 dans le forum Macros et VBA Excel
    Réponses: 2
    Dernier message: 15/03/2009, 07h19
  4. aide sur procédures stockées
    Par laaroussi1 dans le forum Langage SQL
    Réponses: 4
    Dernier message: 31/10/2007, 14h55
  5. Inventaire et fiches de stocks
    Par Zak Blayde dans le forum Modélisation
    Réponses: 3
    Dernier message: 08/06/2007, 15h23

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