Thread: database questions

  1. #1
    Registered User
    Join Date
    Nov 2001

    database questions

    I'm trying to make a c++ database for a school project and I'm not too good with c++...i'm wondering if anyone can give me a few tips on how to make search engine function with c++.

  2. #2
    Super Moderator
    Join Date
    Sep 2001

    If you know how to use classes, this may help.

    Try making each entry that the engine has access to a class. Put the words that the search engine should use to select that entry should be in a string, and you can make a function that just goes through, and reads letter by letter, word by word, pausing at the spaces. If the word is a match to one of the ones entered, make another function which displays that entry on screen, then move to the next. The best way to do this would be an array of such a class, and a loop that counts up through the indeces.

    Sean Mackrory

  3. #3
    the Corvetter
    Join Date
    Sep 2001
    Wouldn't that be very memory consuming? Is that the only way to do a database in C/C++?
    1978 Silver Anniversary Corvette

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. literature database: help with planning
    By officedog in forum C++ Programming
    Replies: 1
    Last Post: 01-23-2009, 12:34 PM
  2. Creating a database
    By Shamino in forum Game Programming
    Replies: 19
    Last Post: 06-10-2007, 01:09 PM
  3. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  4. Database / Tex
    By petermichaux in forum C++ Programming
    Replies: 1
    Last Post: 03-24-2004, 09:28 PM
  5. Making a Simple Database System
    By Speedy5 in forum C++ Programming
    Replies: 1
    Last Post: 03-14-2003, 10:17 PM