10-24-2012 05:22 PM
Im struggling with what steps to take even in my algorithm to solve my problem. Here is what I have done so far:
1. I have a text box (form) with the id "message"
2.Im then using this
to store that value in the variable called "words"
3.I have then made a new variable straight after:
splitwords = words.split(" ")
So the message: "Hello world my name is flow"
should now be stored like this
splitwords = "Hello"
splitwords = "world"
splitwords = "my"
First of all am I even doing this correctly?
And if Im not someone help me with how I should tackle the problem is there is one so far.
So here is the actual problem:
I have an array of 10 words. I want to compare all of the splitwords with each word in the array so if thre is a match I can output the words that match. E.g:
If my array contains the words "hello" and splitword[x] contains the words "hello" then the output should be:
Match has been found: Hello
Any help is greatly appreciated,
If you want me to explain more clearly then please ask me to
If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
10-24-2012 07:01 PM