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++

Click Here

Is that in code? Or was that the input to the code you didn't supply?

commented: # include <stdio.h> # include <math.h> # include <stdlib.h> int lx; int ly; char grid [10] [10]; int z; int j; int main() { // declare a +0

ok attached my code in the qiestion

The code in the PDF (you should insert code into your posts from now on) only seems to print out a random boogle.

I see no attempt made to create search functions.

Let's be clear here. Forums usually just help you past a hurdle such as some line or function that doesn't work. But creating a new app or function or even the full design is your work.

I'll also note that Boggle has already been done many times if you search about that. I can't tell if you just need some boogle code from the web or if this is homework which is a test to see if you understand the course work so far.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.