Thread: Lookup Table Reference???

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    184

    Lookup Table Reference???

    I am trying to find a reference on lookup tables.

    Ideally, we would us a switch statement to perform our operations in our program but we need to compare string variables that are 3 characters long. I read in a previous thread that lookup tables are an alternate method since a switch statement cannot use strings. Is this right and can anyone give a reference on lookup tables?????

    Thanks,
    Kendal

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Do you mean a hash table? Hash tables are simply a array structure where indices are acquired via hash functions.

    Kuphryn

  3. #3
    Open to suggestions Brighteyes's Avatar
    Join Date
    Mar 2003
    Posts
    204
    Here would be a good start.

  4. #4
    Registered User
    Join Date
    Feb 2003
    Posts
    184
    Thanks brighteyes,
    that gives me a start.
    got a lot to read.

    Thanks again,
    Kendal

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. C OpenGL Compiler Error?
    By Matt3000 in forum C Programming
    Replies: 12
    Last Post: 07-07-2006, 04:42 PM
  5. c++ linking problem for x11
    By kron in forum Linux Programming
    Replies: 1
    Last Post: 11-19-2004, 10:18 AM