先放代码: class Solution { public: bool hasPath(vector<vector<char> >& matrix, string word) { int n = matrix.size(), m = matrix[0].size(); int vis[205][205]; //对vis矩阵进行初始化 memset(vis, 0, sizeof(vis)); for(int i=0; i<n; i++){ for(...