Say I have an object
MyObj stuff;
To get the address of stuff, I would print
cout << &stuff << endl; 0x22ff68
I want to save 0x22ff68 in a string. I know you can't do this:
string cheeseburger = (string) &stuff;
Is there a way to accomplish this?