>though I did just see that you offered advice on the other forum, so thank you.
Now you yourself have tasted the confusion of cross posting.
>I didn't realize that people would take such offense to asking advice on pre-written code on multiple boards and will point out sources in the future.
Perhaps I was too jumpy as well. But discovering code I wrote being posted here after it was made incorrect, and then seeing an identical thread elsewhere...
I find cross-posting to be rude. And at first I thought you just grabbed the code and didn't acknowledge that it wasn't yours (I read code before the text, usually). I've seen folks copy my code and say, "Hey, look, I wrote this but I need help making a little change..."
>I made the basic assumption that the more people who saw the code, the more advice I'd get.
Perhaps. Not all the advice you get may be in regard to the code, no?
If you cross-post, that's your choice. I suggest at least updating each cross-post with links to where it is cross-posted. Otherwise someone might spend a fair amount of time trying to help, only to be handed one of those "thanks, but I got it working" [with the help from one of the cross posts].
But back to the original issue. What is the big picture?
Do you even need an array, or could you simply read, modify and write each value?
Is the matrix rectangular? Is the size fixed or could it vary?
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand