Created
December 2, 2010 23:10
-
-
Save stpettersens/726292 to your computer and use it in GitHub Desktop.
Why not incrementing z?
This file contains hidden or 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
while(1) { | |
strcpy(fsm.state[x][z], lines[i]); | |
printf("%i %i\n", x, z); | |
z++; i++; | |
if(strcmp(lines[i], ".") == 0) x++; z = 0; | |
if(strcmp(lines[i], "") == 0) break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output is:
1 0
1 0
1 0
2 0
2 0
2 0
3 0
3 0
3 0
Need to have:
1 0
1 1
1 2
2 0
2 1
2 2
3 0
3 1
3 2
... etc ...