...用栈来实现,因为是数据结构课程设计所以只要现成代码,越快越好...答:include "stdafx.h"include <stack> using namespace std;const int rows = 8,cols = 8;HINSTANCE hInst;HBITMAP ball;HDChdc,mdc,bufdc;HWNDhWnd;DWORDtPre,tNow;char*str;intnowPos,prePos;boolfind;stack<int> path;int mapIndex[rows*cols] = { 0,2,0,0,0,0,0,0, //材1&...