Assigning an address

If I have the address OF a struct in a double linked list that I read from a txt file. Is there a way to create a struct at that address, particualarly to a pointer? It seems like I wouldn't have that kind of control in C++. I made a picture if my question isn't clear. Thanks.

address read txt file = 8079fc8
[code]
&node2 = 8079fc8????
|----------------|
| int data; |
| node *leftptr; |
| node *rightptr;|
|----------------|
[/code]
-Homer

Comments

  • [b][red]This message was edited by stober at 2006-3-28 16:2:56[/red][/b][hr]
    : If I have the address OF a struct in a double linked list that I read from a txt file. Is there a way to create a struct at that address, particualarly to a pointer? It seems like I wouldn't have that kind of control in C++. I made a picture if my question isn't clear. Thanks.
    :
    : address read txt file = 8079fc8
    : [code]
    : &node2 = 8079fc8????
    : |----------------|
    : | int data; |
    : | node *leftptr; |
    : | node *rightptr;|
    : |----------------|
    : [/code]
    : -Homer
    :
    :

    the addresses in the file are useless. How do you know those addresses belong to your program or are not being used for something else? you will have to re-create the linked list as the nodes are read from the file.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion