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

Thread: Help me please

  1. #1
    Join Date
    Sep 2012

    Help me please


    I need save two values into array,dictionary,....

    After I need find a value into them. What's the fastest way to do it.

    Is better array or dictionary for find quickly a value.

    Thanks very much

  2. #2
    Join Date
    Apr 2010

    Re: Help me please

    It depends on the type of data you are storing. Dictionary data, with key/value pairs, offers the easiest way to look up a value - but that ease is really only valuable if the data should be stored as key:value pairs. If you have to create a set of keys just so you can look up your values, then Dictionary is not worth it.

    In the future, please try to name your thread something more specific than "need help please." No one knows what you neeed help with. You'll get more responses by using something like "Which is Better, Array or Dictionary For Quickly Finding Value?"

    What is your data?

  3. #3
    Join Date
    Sep 2012

    Re: Help me please

    Hi mrgr8avill:

    Excuse me by my title,but my english isn't good.

    I need save two values, one is an integer(key) and the other is a string (value).

    I enter a string in a textbox and then I need find this string into de dictionary,array etc values then I need do it as quick as possible. There are a lot of values in the dictionary or array,... and I want to know which is the fastest way to do it.

    Is better convert string to long so it is faster to find?

    Thanks very much mrgr8avill.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)