问题描述:输入是由一些字母和单词构成的二维数组,目标是找出字谜中的单词,这些单词可以是水平、垂直或沿对角线以任何方向放置。 编写一个程序求解字谜游戏问题 t h i s 找出 this、two、fat、that w a t s o a h g f g d t #include <stdio.h> #include <string.h> #define alphaTableMax (4) typedef enum tableDir{LEFT = 0, RIGHT, UP, DOWN, LEFTUP, RIGHTUP, LEFTDOWN, RIGHTDOWN} tableDir; typedef struct tableAddr { int row; int colum; }tableAddr; static char alphaTable[alphaTableMax][alphaTableMax] = { {'t', 'h', 'i', 's'}, {'w', 'a', 't', 's'}, {'o', 'a', 'h', 'g'}, {'f', 'g', 'd', 't'}}; int findLeftLetter(const char* word, int row, int colum, int letterNum, tableAddr alphaAddr[]) { if (alphaTable[row][colum - letterNum] == word[letterNum]) { alphaAddr[letterNum].row = row; alphaAddr[letterNum].colum = col