If I'm trying to make a 2d array in a struct, do I have to make the struct a certain size when I write the prototype? I can't explain it very well, but here's what I'm talking about:
Code:
{
int Matrix[][];
int row;
int column;
};
This is what I have ^
I want it to think I have 1 matrix that looks like:
Code:
{
int Matrix[30][25];
int row = 30;
int column = 25;
}
and I want another matrix that looks like:
Code:
{
int Matrix[25][10];
int row = 25;
int column = 10;
}
So I can multiply the matrices to get one that looks like
Code:
{
int Matrix[30][10];
int row = 30;
int column = 10;
}
Can I make the Matrices a certain size "on the go", or do I have to make them all 50x50, just in case I have on the size of 50x50?
I fail at explaining, I hope you understood my question...Sorry if I gave you a headache :|