I have this function which uses recursion to find the longest sequence of numbers. But every time I run it, I get this error message:
0x002871D9 increasing SEC In XE: 0xC0000005: Write access violation location 0x01060EC0.
int seqeter (int grid, int startPos, int seq) {sequence maxseq; Maxseq.size = 0; (For grid [startPos.y] & lt; grid [startPos.x + rows] (integer rows = 0; rows & lt; MAXROWS; rows ++) {for (integer cols = 0; Columns
You are not moving beyond your
startPos - Repeat never stops and you crash the stack immediately.
No comments:
Post a Comment