// Steve Lagree // CSE40872 // This program can solve a word search puzzle given the number of puzzles, dimensions, puzzle, number of words, and the words #include #include using namespace std; //compares characters ignoring case int charCompare(char a, char b){ if(tolower(a)==tolower(b)){ return 1; } return 0; } //reads in the puzzle from stdin void readPuzzle(string puzzle[], int rows,int cols){ int i; for(i=0;i=0&&y>=0&&x> numPuzzles; //read number of puzzles for(int i=0;i0){ cout << endl; } cout << "Map " << i+1 << endl; cin; cin >> rows >> cols; //read in puzzle dimensions string* puzzle; puzzle = new string[rows]; cin.ignore(); readPuzzle(puzzle,rows,cols); //read puzzle cin >> numWords; string* words; words = new string[numWords]; for(int j=0;j> words[j]; } for(int j=0;j