CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Word Matching

  1. #1
    Join Date
    Mar 1999
    Posts
    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

  2. #2
    Join Date
    Apr 1999
    Posts
    383

    Re: Word Matching



    Can you post what you have so far?


    Dave

  3. #3
    Join Date
    Mar 1999
    Posts
    4

    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
  •  





Click Here to Expand Forum to Full Width

Featured