By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,804 Members | 1,666 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,804 IT Pros & Developers. It's quick & easy.

what is needed to implement a memory table?

P: n/a
what is needed to implement a memory table, that will be accessed later
via reference "label".
for example,
i read the NUMBER of DATA the table will have and along with it the
DATA itself in a binary file.

and Using some kind of addressing, how would the table of DATA values
be accessed?

Regards,
krby_xtrm

Dec 14 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a

monkeydragon wrote:
what is needed to implement a memory table, that will be accessed later
via reference "label".
What does that mean?
for example,
i read the NUMBER of DATA the table will have and along with it the
DATA itself in a binary file.
Ok, nice.
and Using some kind of addressing, how would the table of DATA values
be accessed?


Accessed from where?
Nothing is clear from above.

http://www.parashift.com/c++-faq-lite/how-to-post.html

This newsgroup is specific to C++ issues. In case you have a problem
with C++ code, please post the code.

Dec 14 '05 #2

P: n/a
monkeydragon wrote:

what is needed to implement a memory table, that will be accessed later
via reference "label".
for example,
i read the NUMBER of DATA the table will have and along with it the
DATA itself in a binary file.

and Using some kind of addressing, how would the table of DATA values
be accessed?


Can you rephrase that question as it is not clear (at least) for
me what you are asking. If you provide some example, things
are often easier to explain.

From the above I could guess you are looking for a std::map, but I may
be totally wrong also.
--
Karl Heinz Buchegger
kb******@gascad.at
Dec 14 '05 #3

P: n/a
accessed by the application itself, but it will be creating as many
tables that it might not be easy to manage. (the tables of values)

so for example:
DO_THE_TABLE_MACRO(&CURRENT_TABLE_LOCATOR);
// this in turn will create the table reading starting from the
"CURRENT_TABLE_LOCATOR" in the FILE
// and then update the CURRENT_TABLE_LOCATOR

take a look:
http://tinypic.com/imjpd3.jpg

Dec 14 '05 #4

P: n/a
monkeydragon wrote:

accessed by the application itself, but it will be creating as many
tables that it might not be easy to manage. (the tables of values)

so for example:
DO_THE_TABLE_MACRO(&CURRENT_TABLE_LOCATOR);
// this in turn will create the table reading starting from the
"CURRENT_TABLE_LOCATOR" in the FILE
// and then update the CURRENT_TABLE_LOCATOR

take a look:
http://tinypic.com/imjpd3.jpg


Sorry. I still not sure what you are asking for.

From the image, it seems you are looking for an array of arrays.

--
Karl Heinz Buchegger
kb******@gascad.at
Dec 15 '05 #5

P: n/a
Yes that's right, but i have just solved that problem a while ago...

THx.

MKD

Dec 15 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.