1. ## Apmatrix error.

Hello, long time lurker first time poster.

Anyway, I've been using apmatrix for a short time and I've run across a problem.

Anytime I choose to use

board[row-1][col] = blahblah

It works just fine. But when I add

board[row+1][col] = blahblah

I can compile it fine, but when I run the function to make it go row+1 it will just quit out, giving me an illegal matrix bounds(?) error. I'm pretty sure that means it does not go down one space, but it goes down until it is out of the matrix board, so that causes an error?

...Any ideas on how to fix this?

2. Alright if you can't help me with this, is there any other good 2d (X/Y axis) type of thing, I can use for C++?

3. I'm VERY new to Cpp, so this is probably not gonna help. But hell, better safe than sorry.
I think you first need to declare the array so it's big enough. And then use row++ or row--

99% of me is thinking I should delete this post

4. It sounds like you're trying to access part of the array that doesn't exist. If you declare:
Code:
` int array[4];`
and later on try to access or assign a value to
Code:
` array[anything over 3]`
you're going to have a problem because the only indexes for array that are valid are 0,1,2,3.

If array has x indeces, and at the time the program hits this line:
Code:
`board[row+1][col] = blahblah`
then if row >= x - 1, you're going to have trouble. Take a look at what the boundaries of your array are, and where row is when you hit that line in the code.

5. > is there any other good 2d (X/Y axis) type of thing, I can use for C++?
Like a vector for example

vector < vector < int > > myMatrix;

I've no idea what an apmatrix is, but I guess it doesn't expand like a vector can do.

6. Yeah, APmatrix is a real iffy type of... well... matrix. Has a lot of problems with more than a few characters on the same line .