Original Post
anybody know offhand what the routine is for copying only part
of an array in c++? my first thought was to traverse through it
with a loop and define all of the elements manually, but im sure
there's a much much better way
say for example, i have this:
int *LargeBoxOfApples;
LargeBoxOfApples = (int*) new int[1000];
//and this:
int *SmallBoxOfApples;
SmallBoxOfApples = (int*) new int[100];
say i want to copy the first 100 elements of the LargeBox into
the SmallBox...
[edit: i know that in this example a loop would be sufficient,
but for my actual purposes, i'll be dealing with many thousands of
elements, not just 100]
-eldee
;another space monkey;
[ Forced Evolution Studios ]
Do NOT let Dr. Mario touch your genitals. He is not a real doctor!
[edited by - eldee on December 3, 2002 5:47:57 PM]