Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long) Private Declare Function GetCursorPos Lib "user32" (lpPoint As pointapi) As Long Private Decl
开头n行代码: #include #include #include #include #include using namespace std; struct she //用x,y记录蛇的坐标 { int x; int y; struct she *next; }*tou,*wei; //分别指向表示蛇头,蛇尾的节点 enum fangxiang //方向 {shang='w',xia='s',zuo='a',you='d'}; int changdu=5;//蛇的长度 bool shiba
int getkey(); int key(); void zuobiao(int x,int y,int i); int tu(int a[][],int write); int wtu(int a[][],int write); int zhineng(int a[][]); int zh5(int y,int x,int a[][]); long zzh5(int b[][],int i);