Solved

How do I create index files in C++

Posted on 2009-04-01
1
3,087 Views
Last Modified: 2013-11-17
Hi,

I am fascinated by the sort and search method of Dbase files.  In this files with extension .idx are created which

store information about the records in the main file.  Indexing may be done on one field or more than one fields.

For e.g. a record may contain name and salary.  Records can be indexed on name or salary or both.  If one  is asked to search names begining with A, all records with name starting with A are displayed or if the query is AC, all records starting with names AC are displayed.  In this example the primary index is name and secoddary is salary.

Through this process retrieval is also fast.

If a new record is added the index file is updated automatically.

Kindly tell me the steps so that I may develop the algorithm using C++.


Regards,


Abdul Mujeeb
0
Comment
Question by:abdul_mujeeb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
Rincewindwizz earned 500 total points
ID: 24047544
You should try a book on database theory or better still a C++ discussion forum. As a starter, try
http://forums.hostrocket.com/archive/index.php/t-15155.html
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question