cpp snake project to learn cpp
source code from https://github.com/bystc/Snake-cpp/tree/master/%E8%B4%AA%E5%90%83%E8%9B%87https://github.com/bystc/Snake-cpp/tree/master
some hidden error to solve:
1:snake int X,Y variable are easy to overflow;
2:when quickly entitying direction buttion,the program are to crash!!
If some one know the reason,i'll be appreciate.