Need help to edit this code to allow user to find words in the grid that are touching horizontally, vertically, and diagonally adjacent.
For example, the board:
Q W E R T
A S D F G
Z X C V B
Y U A O P
G H J K L
contains the magic words WAS, WAXY, JOB.
The attached file contains my code in c++