hello,
I have a matrix (string array that have words) and I want to write a function that receive the word and consider whether the word existed or not in the matrix
I"m trying to write the function, but i didn't succeeded.
this is my code
int CheckWord (char ch[L])
{
int i=0,j=0,k=0;
char dic[W][L];
for (i;i<L &&j<L; )
{
while (ch[i]!=dic[k][i])
{
k++;
}
return 1;
}
return 0;
}