Using a pointer to add an object to an array
It will not cause problems outside your IDE unless you use up so much memory that there isn't enough left for everything else.
It is a good idea to delete something that was allocated with new. My suggested function above does this.
memcpy is usually very fast.
Topic archived. No new replies allowed.