d_imane | bonjour tous le monde.
j'ai le programme suivant:
Code :
- #include<iostream>
- void main(int argc, char* argv[])
- {
- float xmi=3.4,xma=39.6,ymi=3.4,yma=39.6;
- base bas(xmi,xma,ymi,yma);
- bas.afficher();
- bas.ReaDataFile();
- vecteur::vecteur(){}
- vecteur::vecteur(const vecteur &p){x=p.x;y=p.y;id=p.id;}
- void vecteur::afficher()
- {
- cout<<"id= "<<id<<endl;
- cout<<"xy: "<<x<<" "<<y<<endl;
- }
- vecteur::~vecteur(){}
- base::base(float a,float b,float c,float d)
- {
- int i=0,p=0;
- size_t l = 0;
- float value,val1,val2;
- ifstream Al;
- xmin=a;
- xmax=b;
- ymin=c;
- ymax=d;
- Dimbase=dim;
- std::vector<vecteur>vect(dim);
- Al.open("fich.txt" );
- while (i <(Dimbase*2) )
- {
- Al >> value;
- val1=value;
- Al >> value;
- val2=value;
- vect[l].x=val1;
- vect[l].y=val2;
- vect[l].id=compt++;
- l++;
- i=i+2;
- }
- Al.close();
- }
- void base::afficher()
- {
- cout<<"=================la base==========================="<<endl;
- cout<<"xmin= "<<xmin<<" "<<"xmax= "<<xmax<<endl;
- cout<<"ymin= "<<ymin<<" "<<"ymax= "<<ymax<<endl;
- }
- base::~base(){}
|
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 |