"cnlai" <cnlai@pc.jaring.my> wrote in message
news:etdnbj$1frh$1@news9.jaring.my...
If you're using an index (e.g. a B+ tree), I would call that a 'database'.
With no database (for my conception of 'database'), the only alternative
is a 'flat file', which would necessarily have redundancy (all possible
combinations stored), e.g.:
Product Category
1 1
1 2
1 3
2 1
2 2
3 3
If you have a reasonably small data set, this might be the way to go,
since it would keep the code simple and very maintainable.
It would typically use one or more indices, which might be separate files,
or indices and data could be embedded in a single file. Each method has
its advantages and disadvantages.
Another possiblity is to use an already made database package, such as
Oracle or SQL. You'd need to study up on their programmatic interfaces,
and make sure one is offered in a language you're familiar enough with.
Finally, what has this to do with Win32 programming?
You'll probably get more (and better) advice from newsgroups
about databases and algorithms, where people well-versed in
those discipline are more likely to congregate.
-Mike