I would like to write a program that creates a relational database that handles queries using only C++. What would be the most appropriate method? Using arrays, linked lists or something else? Please advise.

11 Years
Discussion Span
Last Post by maverick786

All the above. If you are new to c++ then you are not ready to tackle that project -- companies have spent years of manhours on that sort of project and those programmers are highly experienced people. database programs do not bring the entire files into memory because the files can get very very huge. Instead they use key files which contain key fields, offsets into the actual data file, and pointers to the next key field. This normally involves complex binary trees and structures.

Writing a small relational database program might be a good project for a 4th year college student (400 or 500 level college course).


Thank you for your response. I intend to only demonstrate n-ary relations i.e selection and delete. I suppose using a few 2-dimensional arrays will suffice. Thanks.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.