-
Oct 30th, 2003, 12:46 AM
#1
Thread Starter
Conquistador
Data storage
I'm looking for a free, efficient method of storing data so that I can search (easily) for stored data ( by one of two fields ) and save new data
Any ideas?
-
Oct 30th, 2003, 02:28 AM
#2
Huh?
What method wouldn't be free, what do you mean by free?
A binary tree sounds good, provided that it's always the same fields you search for. Then you only need to provide a good sorting function and such and it should work.
std::set is a binary tree.
All the buzzt
CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 30th, 2003, 07:59 AM
#3
Thread Starter
Conquistador
I don't want to have to pay for a dll / class or include a dll
that's what i meant by free
Got any examples?
-
Oct 30th, 2003, 01:58 PM
#4
Frenzied Member
do you want to save/retrieve the data in files? if so, search for file streams in <fstream>
and for searching/sorting look at data structures such as linked lists, trees, and vectors. they're in the standard library and are fairly straightforward.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|