Thread: Creating the Database Using C++

  1. #1
    Registered User
    Join Date
    Feb 2010
    Location
    Pakistan
    Posts
    6

    Creating the Database Using C++

    Hello everyone!

    I have an assignment to create database using C++, plus some basic queries could be executed from that program . But I have no idea what to do and from where to start. so if anyone can guide me ,that what kind of data structure i should use and how, i will be very thankful.

  2. #2
    Registered User
    Join Date
    May 2010
    Posts
    4,633
    This depends on what you mean by "database", a database can be as simple a flat file, or a multi-user, client-server type of system. You might want to start by determining your data storage/retrieval requirements, the amount and type of data to be stored and retrieved.

    Once you have determined some of the basic requirements you can decide how to implement your database.


    Jim

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    For anything beyond your beginner examples, I would recommend SQLite. There is also a SQLite++ wrapper for C++. There are some good examples there to get you started on that, if you need it.
    But this is somewhat advanced.

    You should consider using basic file I/O first.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling GNU MP
    By mattnp12 in forum C Programming
    Replies: 3
    Last Post: 06-23-2011, 03:58 PM
  2. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  3. Creating a database
    By Shamino in forum Game Programming
    Replies: 19
    Last Post: 06-10-2007, 01:09 PM
  4. Creating a database (inside a GUI)
    By goosematt in forum C Programming
    Replies: 7
    Last Post: 10-23-2003, 11:04 AM
  5. Creating a simple database: is my approach OK?
    By m712 in forum C++ Programming
    Replies: 1
    Last Post: 11-18-2002, 02:27 AM