Created
June 10, 2015 09:16
-
-
Save jarmitage/563fa4de7827005cc79a to your computer and use it in GitHub Desktop.
Array traversal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (int r = 0; r < graphRows; r++) | |
{ | |
for (int c = 0; c < graphCols; c++) | |
{ | |
int current = (graphCols - 1 - c) * graphRows + r; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment