Yes Salem, I'm SURE my problem is that everything is pointing at the same object, the pointer in the loop and the one stored in the vector, so my silly question is how to do what I'm trying to do,...
Type: Posts; User: z80z80
Yes Salem, I'm SURE my problem is that everything is pointing at the same object, the pointer in the loop and the one stored in the vector, so my silly question is how to do what I'm trying to do,...
The main code is C, to store Point* I googled for some code to implement list or vectors and this was the first and simpliest way I found, the compiler is VC so I've no problem using some C++ code,...
Too much time without C programming (15+ years) so I'm a totally newbie now.
My problem, sure it's simply, is that I'm storing pointers in a vector but they are modified.
I've a Point* point;...