
Originally Posted by
reno
pixel_t *pix = (pixel_t *) malloc(sizeof(pixel_t) * Width * Height);
int counter1 = 0, counter2;
for(;counter1<306;counter1++){
for(counter2 = 0;counter2<204;counter2++){
pix[counter1][counter2]->r = fgetc(tiger);
pix[counter1][counter2]->g = fgetc(tiger);
pix[counter1][counter2]->b = fgetc(tiger);
fprintf(stdout, "%c %c %c", pix[counter1][counter2]->r, pix[counter1][counter2]->g, pix[counter1][counter2]->b);
}
}
mainDriver.c:57:17: error: subscripted value is neither array nor pointer nor vector
mainDriver.c:58:17: error: subscripted value is neither array nor pointer nor vector
mainDriver.c:59:17: error: subscripted value is neither array nor pointer nor vector