Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2615 connectés 

  FORUM HardWare.fr
  Programmation
  C++

  traduction c en c++

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

traduction c en c++

n°2116759
banjo16
Posté le 15-12-2011 à 11:46:21  profilanswer
 

bonjours quelq'un pourrait traduir ce code du c en c++
 
 int temp, y1, y2, x1, x2, wide, high;   printf("Please Enter x1 y1 x2 y2" );   scanf("%i %i %i %i", &x1, &y1, &x2, &y2); if(y1> y2) {     temp = y1;     y1 = y2;     y2 = temp; } if(x1> x2) {     temp = x1;     x1 = x2;     x2 = temp; }  wide = x2-x1+1; high = y2-y1+1;  fprintf(outstream, "%2s\n%i %i\n%i\n", header->filetype, wide, high,header->maxgray);  pixel image[header->height][header->width]; pixel *pix = malloc((wide*high) *sizeof(char));  int a = 0;      for(int b= 0; b<header->height; ++b)     {         for(int c=0; c<header->width; ++c)         {             image[b][c] = header->p[a];             ++a;         }     }  int k = 0; for(int i = 0; i< high; ++i) {     for(int j = 0; j<wide; ++j)     {         pix[k]=image[i][j];      } } fwrite(pix, 1, (wide*high) * sizeof(pixel), outstream);

mood
Publicité
Posté le 15-12-2011 à 11:46:21  profilanswer
 

n°2116766
gilou
Modérateur
Modzilla
Posté le 15-12-2011 à 12:26:20  profilanswer
 

Non.
Ici, on ne fait pas le boulot à ta place, surtout au vu de ce que tu as posté, ou on n'a pas pu relever le moindre codage personnel pour le moment.  
Traduis le et on t'indiqueras tes erreurs.
A+,


---------------
There's more than what can be linked! --    Iyashikei Anime Forever!    --  AngularJS c'est un framework d'engulé!  --
n°2116779
banjo16
Posté le 15-12-2011 à 14:00:36  profilanswer
 

veuillez m'excuser


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  C++

  traduction c en c++

 

Sujets relatifs
Tarif pour traduction en anglais ??Script keylogger .. probléme de traduction
Smarty traduction dans wifidogJointure et choix de valeurs par defaut (pour traduction)
Traduction programmetraduction d'une textarea
traduction du diagrame de classe UML en JAVAProgramme VB6 traduction
Suppression d'ancien fichier en PERL 
Plus de sujets relatifs à : traduction c en c++


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR