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
|
ifstream is;
char * chemin;
chemin="";
is.open (nom_fichier, ios::in );
int cpt=0,entier,x,y;
char lettre,lettre2;
SInfoImage info_img;
while(cpt!=m_nb_niveaux){
is >> lettre;
if(lettre=='#'){
cpt++;
SInfoDimension info_dim;
is >> entier >> info_dim.largeur >> info_dim.hauteur ;
m_tab_taille_image[cpt-1]=info_dim;
}
else if(lettre=='~'){
is >> chemin>> info_img.x >> info_img.y ;//Le programme plante a cette ligne
info_img.chemin=chemin;
m_tab_info_image[cpt-1].AddTail(info_img);
} |
Partager