I've determined that knowing more than 5 languages has proven to be a neusance when trying to do simple things. Using C++ (on linux if it matters to ya)...
I've got a two dimentional array of my own Square class. The square class only contains int color and int area.
I've declaired it using
Square Sqr[r][c];
r and c are integers.
It is properly creating all of the classes (I can check it by outputing something when the Square constructor is called) but I can't seem to reference it.
1. How do I reference a single value? (ie: Sqr[2][3].color)
2. How do I make a pointer to this 2D array so that I can pass it to another procedure? -Dustin
Rom 8:28
I've got a two dimentional array of my own Square class. The square class only contains int color and int area.
I've declaired it using
Square Sqr[r][c];
r and c are integers.
It is properly creating all of the classes (I can check it by outputing something when the Square constructor is called) but I can't seem to reference it.
1. How do I reference a single value? (ie: Sqr[2][3].color)
2. How do I make a pointer to this 2D array so that I can pass it to another procedure? -Dustin
Rom 8:28