I have a 2-dimensional C++ array of floating point numbers. Some of its elements are zeroes, and some are other numbers.
I would like to copy the "other numbers" from this array into another 2 dimensional array (everything except the zeroes). I would also like them to accumulate... i.e. element [1][5] in the new array is the sum of [1][1], [1][2], [1][3], [1][4], and [1][5] in the old array.
How do I do this?
Copy from one array into another in C++?
Could you copy your code to something like Pastebin?
http://pastebin.com/
It's easier to read and figure out what you have already.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment