#include #include #include #include #include using namespace std; int MyF( int ); int mazeSolver(int i, int j); struct maze { int rows; int cols; char matrix [100][100]; }; maze myMaze; int main() { //required variables ifstream in; in.open("CMMmaze1.txt"); char line; //read the matrix in >> myMaze.rows; in >> line; in >> myMaze.cols; cout << "Reading a " << myMaze.rows << " by " << myMaze.cols << " matrix." << endl; //read in end of line character in.get(line); for(int i=0; i-1) { return 0; } } //south path //(i+1,j) //... //east path //(i,j+1) //... //west path //(i,j-1) //... //return no paths (-1) return -1; }