I have two arrays one is called word[] which contains 3 words lab, mat and can.
The second is an array called line[] which contains the characters labfromcabcan
I am able to find the word[] that exist in line[] and print them onto the screen however I can't do the same for words that don't exist in line[]. Any help would be appreciated. I attempted to create a book called Found and assign true to it once the word was found but this didn't work.
Your question doesn't make much sense given that your second array contains only ONE word, labfromcabcan.
If the first set of words are {lab mat can} and the second set of words is {labfromcabcan} then the words that don't exist in both arrays are {lab mat can labfromcabcan}.
So what exactly do you mean? If the arrays are {lab mat can} and {labfromcabcan} , what is the correct answer that you're looking for?
Please show your code for finding the words in the characters. Finding words not present should be basically the same. As already suggested you should show your expected output with the input as given. And do you need to be able to search for different words in different char arrays?
Your question doesn't make much sense given that your second array contains only ONE word, labfromcabcan.
Actually he stated the second array is an array of char containing {labfromcabcan}.