Quote Originally Posted by Igor Vartanov View Post

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?