C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 26th, 2003, 12:03 AM
andy3109's Avatar
andy3109 andy3109 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 421 andy3109 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 46 m 21 sec
Reputation Power: 6
Send a message via AIM to andy3109
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...

Reply With Quote
  #2  
Old May 26th, 2003, 07:01 PM
andy3109's Avatar
andy3109 andy3109 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 421 andy3109 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 46 m 21 sec
Reputation Power: 6
Send a message via AIM to andy3109
anybody?

Reply With Quote
  #3  
Old May 26th, 2003, 08:09 PM
7stud 7stud is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Feb 2001
Posts: 1,327 7stud User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 44 m 50 sec
Reputation Power: 9
While you wait, how about going to google.com and typing "c++ database"?

Or doing the same at amazon.com?

Reply With Quote
  #4  
Old May 26th, 2003, 09:14 PM
andy3109's Avatar
andy3109 andy3109 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 421 andy3109 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 46 m 21 sec
Reputation Power: 6
Send a message via AIM to andy3109
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

Reply With Quote
  #5  
Old May 26th, 2003, 09:53 PM
dcaillouet's Avatar
dcaillouet dcaillouet is offline
Big Endian
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2001
Location: Fly-over country
Posts: 1,173 dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 16 h 29 m 5 sec
Reputation Power: 24
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.

Reply With Quote
  #6  
Old May 26th, 2003, 10:16 PM
andy3109's Avatar
andy3109 andy3109 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 421 andy3109 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 46 m 21 sec
Reputation Power: 6
Send a message via AIM to andy3109
thanks for the resources..its reading time.

-andy

Reply With Quote
  #7  
Old May 27th, 2003, 09:40 PM
dcaillouet's Avatar
dcaillouet dcaillouet is offline
Big Endian
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2001
Location: Fly-over country
Posts: 1,173 dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 16 h 29 m 5 sec
Reputation Power: 24
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/

Reply With Quote
  #8  
Old May 28th, 2003, 01:31 PM
andy3109's Avatar
andy3109 andy3109 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 421 andy3109 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 46 m 21 sec
Reputation Power: 6
Send a message via AIM to andy3109
only issue..im on windows platform.

Reply With Quote
  #9  
Old May 28th, 2003, 02:03 PM
dcaillouet's Avatar
dcaillouet dcaillouet is offline
Big Endian
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2001
Location: Fly-over country
Posts: 1,173 dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 16 h 29 m 5 sec
Reputation Power: 24
I read about it in Linux Journal, but if you go to the website and look under features it says:
  • Built and tested under Linux and Windows.
So if it fits your needs, it still may be a viable solution.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > random access?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT