|
-
December 27th, 2010, 09:18 AM
#12
Re: Snake
 Originally Posted by Igor Vartanov
Besides, this prototype looks really dangerous:
Code:
void MoveSnake(POINT pt[500][2],int iDirect,int iLength)
In case you cross the array bounds somehow, you spoil the stack with unpredictable behavior.
So what should the correct prototype be?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|