就是普通的回溯啊 #include<iostream> using namespace std; bool visited[100]; bool hasPathCore(char* matrix, int rows, int cols, int size, char* str, int i, int& k) { visited[i] = true; int l = i - 1; int r = i + 1; int u = i - cols; int d = i + cols; ++k; if (matrix[i] !...