Skip to content

Instantly share code, notes, and snippets.

@housemeow
Created March 13, 2014 14:02
Show Gist options
  • Save housemeow/9529051 to your computer and use it in GitHub Desktop.
Save housemeow/9529051 to your computer and use it in GitHub Desktop.
scanf("%d %d", &x_size, &y_size);
for(x=0;x<x_size;x++)
{
for(y=0;y<y_size;y++)
{
int value;
scanf("%d", &value);
mapArray[y][x] = value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment