Ok, using
mon << (void*)msg requires me to make a function in Monitor with prototype
Monitor& Monitor::operator<<(void*)
{
//What to put here?
} but then I'm very uncertain as to what the...
Type: Posts; User: Scalpel78
Ok, using
mon << (void*)msg requires me to make a function in Monitor with prototype
Monitor& Monitor::operator<<(void*)
{
//What to put here?
} but then I'm very uncertain as to what the...
That just outputs the actual characterstring "A long string", while I'm interrested in the address where the string is stored. I'd like to print for example 0x0203940. I tried to do
mon << &msg;...
Thanks for your replies.
The reason I'm asking it that I've written a class, Monitor, which behaves kinda like cout. Today I'm able to do this:
Monitor mon;
int number = 123;
mon << "A long...
Hi, how can I get the actual memory address (f.instance 0x0800h) where my variables are stored and my pointers are pointing?
I'd like to print the address to the screen using cout.