mrmoo90
2011-10-17 13:30:06 UTC
Ok. What I would like to do is store an address in a pointer variable. The address is currently saved in a string variable. Here is the code:
TreeNode
string Address = "0x878F3D";
// How do I set current equal to the address stored in Address
// Note: I have tried maaany things so please don't suggest things like this:
current = Address;
// Or this
int hexadecimal;
stringstream convert (Address);
convert >> std::hex >> hexadecimal;
current = hexadecimal;
Please! I am going crazy trying to figure this out!