|
From: Robson B. <rob...@su...> - 2003-02-22 15:24:51
|
Hi! I'm in trouble again! My c++ book does not explain how to redim an array
at run time, preserving contents.
I want to resize an array of sprites every time that user presses 'N' key,
to add a new sprite, specified in the following class:
class SPRITE {
public:
int x;
int y;
int sx;
int sy;
long color;
void move(void);
void draw(void);
void erase(void);
};
Any input appreciated.
|