Hello , First I wanna thank all the people that hade helpt with "string to int" problem.
I'm using Visual studio 6.0 and I 'm woking on the following code:
It seem that an error is generated when I try to erase an object from the list.
I appriciate all help.
I'm using Visual studio 6.0 and I 'm woking on the following code:
Code:
list<Figure *>HildingsKakor;
.....
Figure* p = new Figure("somebitmp.bmp, 100, 100");
HildingsKakor.push_back(p);
Figure* p = new Figure("somebitmp.bmp, 100, 200");
HildingsKakor.push_back(p);
...
for(list<Figure *>::iterator it=HildingsKakor.begin(); it!=HildingsKakor.end();it++){
krockar = pJanos->operlapsWith(**it);
if(krockar){
[b]HildingsKakor.erase(it);[/b][COLOR=red]this line is generating error [/color]
}
}
I appriciate all help.