Imaginons un constructeur de ta classe Point(const float& x,const float& y,const float& z, const Genre& g);
sert toi du conteneur aproprié a ton besoin, ici un vector :
float x,y,z;
Genre g;
std::vector<Point*> vectorPoint;
std::ifstream file("fichierDePoint.txt");
while(file.good())
{
file >> x >> y >> z >> g; // en considérant que Genre ai redéfini l'operateur >>
vectorPoint.push_back(new Point(x,y,z,g));
}
file.close();
KeniiyK