Solved

How do I create index files in C++

Posted on 2009-04-01
1
2,939 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
1 Comment
 
LVL 3

Accepted Solution

by:
Rincewindwizz earned 500 total points
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now