dialogbox en vc++

dialogbox en vc++ - C++ - Programmation

Marsh Posté le 26-07-2005 à 11:24:26    

:hello: bonjour tous le monde.
 :whistle: j'ai le programme suivant:

Code :
  1. #include<iostream>
  2. void main(int argc, char* argv[])
  3. {
  4. float xmi=3.4,xma=39.6,ymi=3.4,yma=39.6;
  5.     base bas(xmi,xma,ymi,yma);
  6.     bas.afficher();
  7.     bas.ReaDataFile();
  8. vecteur::vecteur(){}
  9. vecteur::vecteur(const vecteur &p){x=p.x;y=p.y;id=p.id;}
  10. void vecteur::afficher()
  11. {   
  12. cout<<"id= "<<id<<endl;
  13. cout<<"xy: "<<x<<" "<<y<<endl;
  14. }
  15. vecteur::~vecteur(){}
  16. base::base(float a,float b,float c,float d)
  17. {
  18. int i=0,p=0;
  19. size_t l = 0;
  20. float value,val1,val2;
  21. ifstream Al;
  22. xmin=a;
  23. xmax=b;
  24. ymin=c; 
  25. ymax=d;
  26. Dimbase=dim;
  27.      std::vector<vecteur>vect(dim);
  28. Al.open("fich.txt" );
  29. while (i <(Dimbase*2) ) 
  30.  Al >> value;
  31.  val1=value;
  32.  Al >> value;
  33.  val2=value;
  34.     vect[l].x=val1;
  35.     vect[l].y=val2;
  36.     vect[l].id=compt++;
  37.     l++;
  38.  i=i+2;
  39. }
  40. Al.close();
  41. }
  42. void base::afficher()
  43. {
  44. cout<<"=================la base==========================="<<endl;
  45. cout<<"xmin= "<<xmin<<"  "<<"xmax=  "<<xmax<<endl;
  46. cout<<"ymin= "<<ymin<<"  "<<"ymax=  "<<ymax<<endl;
  47. }
  48. base::~base(){}


 :bounce: je diriger l'ecran d'execution vers le dialogbox , j'aimerai bien afficher les résultats dans le dialog box de vc++ 6.0
quelqu'un a une idée!!!
merci d'avance

Reply

Marsh Posté le 26-07-2005 à 11:24:26   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed