Results 1 to 4 of 4

Thread: Data storage

  1. #1

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    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?

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  3. #3

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    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?

  4. #4
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276
    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
  •  



Click Here to Expand Forum to Full Width