|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
random access?
As of now, the only method I know to store and retreive is Fstream. Fstream is however very limiting and can't pinpoint specific areas of text within a text file, database, etc. My goal eventually is to design a program that stores names in a database, the names may be retrevied singly from that database by the user. Could someone point me in the direction I need to go to accomplish this task? From just guessing I would say programs as postgre would get the job done (not sure if that is the easiest way though). Any help, sites, etc. would be much appreciated. Regards.
-andy
__________________
hmmm... |
|
#2
|
||||
|
||||
|
anybody?
|
|
#3
|
|||
|
|||
|
While you wait, how about going to google.com and typing "c++ database"?
Or doing the same at amazon.com? |
|
#4
|
||||
|
||||
|
stud, I did that before I posted..I came across alot of postgre and sql stuff. Not sure if that is the best method to go about doing it though.
-andy |
|
#5
|
||||
|
||||
|
MySQL's C API:
http://www.mysql.com/doc/en/C.html MySQL's C++ Library: http://www.mysql.com/products/mysql++/ A code example: http://www.mysql.com/documentation/...4_Tutorial.html Postgresql's Programmer's Guide (C API): http://www.postgresql.org/docs/view...programmer.html Postgresql's C++ Library: http://gborg.postgresql.org/project...projdisplay.php ~2000 pages of Firebird documentation + API guide: http://firebird.sourceforge.net/ind...=doc&id=userdoc Here's a link to another post where we discussed various database abstraction libraries. These libraries allow you to write code that will connect to various databases with minimal changes to your program. http://forums.devshed.com/t62684/sb...6d3a1ec871.html Most databases either install examples of C/C++ code when you install the database or have examples you can download. |
|
#6
|
||||
|
||||
|
thanks for the resources..its reading time.
-andy |
|
#7
|
||||
|
||||
|
I was in Barnes & Noble drinking a big coffee when I came across an article in this months Linux Journal where they were talking about SQLite.
Based on your initial post, if you're not doing anything huge and complex, this might be something you want to look at. http://www.sqlite.org/ |
|
#8
|
||||
|
||||
|
only issue..im on windows platform.
|
|
#9
|
||||
|
||||
|
I read about it in Linux Journal, but if you go to the website and look under features it says:
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > random access? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|