Thanks for input, Zodiac. But im still having some troubles with this:
>using std::vector;
>vector<SPRITE>mySprites;
should i use my own var name - vector<SPRITE>sprites - ?
>//and now to add new sprite
>SPRITE new;
where in the code may i use this?
>//here make some adjustments to new object
>mySprites.push_back( new );
Should i interpret 'new' you put into the braces as the 'new' directive or
as a var name to the new SPRITE?
Could you make a simple demo with a vector of ints so i can understand it
better?
Thanks!!!
|