I have a 2D structure, say an array of 352 by 288 elements and lets say the array is called CURRENT. Once i've finished processing this array I read in new values into the CURRENT array. But i want to hold onto the old values of "current" array, perphaps in an array called PREVIOUS.
I want to know the most efficient way of doing this....
1. Obviously I could just loop through filling PREVIOUS=CURRENT, and then read in the new values of CURRENT. But this seems rather computational intensive.
2. Use two arrays and flip between both for CURRENT processing. Keeping track of which array represents which might be awkward however.
3. use *some* STL - I've no knowledge however about this though and the platform i wish to write for doesnt have great support for STL anyway.