Structures and undifined array dimensions...
Hello,
I want to define a structure that has 5 elements in it: two integers, two arrays of type int and one multydimensional array of type float.
The thing is that the dimensions of my arrays depend on my first two intingers...
Something like this:
Code:
struct DATA
{
int num_columns;
int num_rows;
int temp_air[num_columns];
int speed_wind[num_rows];
float mat_tempspeed[num_columns][num_rows];
};
Now, when i try to compile, 4 errors show up telling me that num_columns and num_rows are undeclared here (not in a function)...
I know the errors are caused by my arrays but i dont know how to fix this problem.