|
-
March 30th, 1999, 06:07 AM
#1
Word Matching
I am teaching myself C++ and I an having difficulty in matching a single word to selection of words in a list. Can anyone help me with a little source code or an algorithm?
Thanks
Mary
-
March 30th, 1999, 06:11 AM
#2
Re: Word Matching
Can you post what you have so far?
Dave
-
March 30th, 1999, 06:14 AM
#3
Re: Word Matching
selection or collection of words????
Do Linear search , u can do also Binary search
Linear Search is searching from first item to last item{till the word found}in the list , use strcmp() function to compare , and search ur word with all the items in the list , if match is found just go out of the loop and till the end of the loop if no match is found then declare it is not found
all the best
Asha
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|