svp
quelqu'un qui peut m'aider

j'ai programme un truc en langage C, il fait une partie de mon projet et je veux le programmer en C++ mais j'étais bloquer

quelqu'un qui peut m'aider svp

voila mon programme en C :

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
        #include <stdio.h>
        #include <stdlib.h>
        #include <conio.h>
 
        int main (void) {
            int Xmax=16;
            int Xmin=10;
            int Sinit=3;
            int M,N;
            int Kmin,Kmax;
            int di= 9;
            int C;
            int i=1;
 
          // Calculer Kmax  :
          printf("Periode : %d\n", i); 
 
          for (int l=3;l<7;l++){
             printf("\nl est : %d\n", l); 
          M =  di+l-Xmax;
          N =  di+l-Xmin;
 
          if(N < Sinit) 
               printf("Kmax est : %d\n", N);
          else 
                printf("Kmax est : %d\n", Sinit);
 
          if(M > Sinit) 
               printf("Kmin est : %d\n", M);
          else  
                printf("Kmin est : %d\n", Sinit);   
          }
 
 
          getch();
      }