Hey,
What do you think about the hierachy model for
some palm apps (on palm
hand-held)?For examples:I have a database with many
records,all the records
are showed in list and then I click on a item of the
list,It shows for me
about some "subrecords" of the clicked record and then
each "subrecords"
has many "subrecords" and then so on.So I must use a
data structure in tree
model like this:
struct Record
{
char contents[NAME_LENGTH+1];
Boolean haveSub;//Have sun or not
Record *refRec;//refer to list of subrecords of a
record
};
typedef Record *RecordPtr;??????
My problems is the following:How do the subrecords
of a record save?
For examples:I have a database with five records,each
record has struct as
above,each record has a list of some subrecords(linked
list).How do the
subrecords of the record save?In other database,if we
use the case,I think
that:It isn't good because first database can have
many records or each
record in the database points a linked list of their
sub.How do data
structure organize for the case?
Thanks in advance,
Trinh.
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/