000000000 -3800000000 0-380010000 00-38000000 000-3800000 0000-380000 00000-38000 000000-3800
int getMatrix[width][height]; for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { getMatrix[x][y] = fgetc(file) - '0'; } } // Prints test Matrix : for (int y = 0; y < height; y++) { for (int x = 0 ; x < width; x++) { printf("%d", getMatrix[x][y]); } printf("\n"); }
int getMatrix[width][height]; for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { char c = getc(file); while( c == '\r' || c== '\n' ) c=getc(file); getMatrix[x][y] = c - '0'; } }