I must have tried 20 ways of doing this by now. I really need help, no matter what I do i get a error similar to this one.
a value of type \"int\" cannot be
To allocate the array:
int *array = malloc(sizeof(int) * 160 * 10);
Then use code like:
array[10 * row + column] = value;
(Where row goes from 0 to 159 inclusive and column goes from 0 to 9 inclusive.)
row
column