I've put a code together, a simple one. It's supposed to search an array of pointers (I initialized it at the beginning).
each word is defined as any sequence of alphanumeric characters only:
"okij" - valid word
"good" - valid word
"good bye" - not valid word
"boat." - not valid word
Now this is what the code is suppoosed to do:
if a given word is too long (>10) then return 0
or
a word is considered correct if found in the array OR if it is a digit, OR if the word is defined properly (sequence of alphanumeric chars) then return 3
otherwise it is considered incorrect and returns 1
And it isn't working...why? please help



LinkBack URL
About LinkBacks


