Jump to content

  •  

  • iBotModz CBox


    Photo

    (C#) Linear Searching


    • Please log in to reply
    8 replies to this topic

    #1 Dark Slipstream

    Dark Slipstream

      Blue Shadowz Owner

    • Members+

    • 2,829 posts
    • Joined: 19-April 08
    • Gender:Male
    • Location:Canada, ON

    Posted 11 May 2009 - 08:01 PM

    Removed.

    Edited by Dark Slipstream, 16 August 2009 - 11:10 PM.

    • likes this

    #2 Dark Slipstream

    Dark Slipstream

      Blue Shadowz Owner

    • Members+

    • 2,829 posts
    • Joined: 19-April 08
    • Gender:Male
    • Location:Canada, ON

    Posted 11 May 2009 - 08:05 PM

    I updated main post. I forgot to add my latest Slipstream.dll. It is needed for a conversion in ScanForBytes.

    I hope people learn how to use this.
    • likes this

    #3 yungbol

    yungbol

      Firmware Expert

    • Global Mods

    • 1,461 posts
    • Joined: 09-April 08
    • Gender:Male
    • Location:Philly

    Posted 11 May 2009 - 09:38 PM

    Just changed your topic names to include the language as you requested. Nice job on releasing all these snippets.

    #4 Dark Slipstream

    Dark Slipstream

      Blue Shadowz Owner

    • Members+

    • 2,829 posts
    • Joined: 19-April 08
    • Gender:Male
    • Location:Canada, ON

    Posted 12 May 2009 - 10:54 AM

    Thanks very much. I'll add some more snipplets and sources later today.

    #5 dschu012

    dschu012

      Private Grade 2

    • Members+

    • 83 posts
    • Joined: 19-March 08

    Posted 12 May 2009 - 12:11 PM

    A recursive function is a function that calls itself.

    Example:
    //C++ Returns the Greatest Common Denominator
    int gcd(int x, int y)
    {
      if (y == 0)
    	 return x;
      else
    	 return gcd(y, x % y); //calls itself
    }

    What you posted is a linear search

    #6 Dark Slipstream

    Dark Slipstream

      Blue Shadowz Owner

    • Members+

    • 2,829 posts
    • Joined: 19-April 08
    • Gender:Male
    • Location:Canada, ON

    Posted 12 May 2009 - 12:14 PM

    thanks, I'll have someone update the title.

    #7 yungbol

    yungbol

      Firmware Expert

    • Global Mods

    • 1,461 posts
    • Joined: 09-April 08
    • Gender:Male
    • Location:Philly

    Posted 12 May 2009 - 12:15 PM

    Title updated per request.

    #8 simba

    simba

      Apprentice Grade 2

    • Members+

    • 10 posts
    • Joined: 27-March 09

    Posted 14 May 2009 - 10:21 AM

    Great, thanks a lot for the searching bytes and dll.
    Look works, but now how to know the hex adress of the scanbyte result? :huh:
    Thanks. :rolleyes:

    Ok, i have my answer, for example :
    MessageBox.Show("Here : " + i.ToString("X2"));

    Edited by simba, 14 May 2009 - 11:44 AM.


    #9 Dark Slipstream

    Dark Slipstream

      Blue Shadowz Owner

    • Members+

    • 2,829 posts
    • Joined: 19-April 08
    • Gender:Male
    • Location:Canada, ON

    Posted 15 May 2009 - 11:12 PM

    If you are using the offset for File Handling, it doesn't have to be in HEX format, it can be in DEC.