readin' a database....

This is a discussion on readin' a database.... within the C++ Programming forums, part of the General Programming Boards category; Hi! I don't know hot to access to a database with c++... can anyone tell me the way?... thank you ...

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    2

    readin' a database....

    Hi!
    I don't know hot to access to a database with c++...
    can anyone tell me the way?...
    thank you all.

  2. #2
    Registered User
    Join Date
    Jul 2002
    Posts
    2

    p.s.:

    It has to be windows and unix compatible...

  3. #3
    Registered User
    Join Date
    Jul 2002
    Posts
    94
    Well, er, I'm not sure if this is Unix compatible, and if not, sorry, but you could just make a file that holds all the info.
    Code:
    ofstream out("dataBase.dab",ios::app);
    out << data << endl;
    ...
    ifstream in("dataBase.dab");
    in >> data >> endl;
    Brendan
    Draco dormiens nunquam titillandus

  4. #4
    Seeking motivation... endo's Avatar
    Join Date
    May 2002
    Posts
    537
    The window and unix compatibility is the problem here, I dont know of any which cover both (except if you was to use java)

  5. #5
    Registered User GrNxxDaY's Avatar
    Join Date
    Jul 2002
    Posts
    140
    I needed to make a database for my game before. Sounded too hard, so I just made classes and used that for it. It's pretty effective I think.. but still not as easy to update as a database.
    AOL: GrNxxDaY
    IDE: Dev-C++ Beta 5 (v4.9.4.1)
    Project: Eye of Sahjz (text-RPG)
    If you think I may need help, please IM me.

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, 11:34 AM
  2. Creating a database
    By Shamino in forum Game Programming
    Replies: 19
    Last Post: 06-10-2007, 01:09 PM
  3. Replies: 10
    Last Post: 05-18-2006, 11:23 PM
  4. Developing database management software
    By jdm in forum C++ Programming
    Replies: 4
    Last Post: 06-15-2004, 04:06 PM
  5. Making a Simple Database System
    By Speedy5 in forum C++ Programming
    Replies: 1
    Last Post: 03-14-2003, 09:17 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21