Search:

Type: Posts; User: Scalpel78

Search: Search took 0.00 seconds.

  1. Replies
    16
    Views
    5,295

    Ok, using mon

    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...
  2. Replies
    16
    Views
    5,295

    That just outputs the actual characterstring "A...

    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;...
  3. Replies
    16
    Views
    5,295

    Thanks for your replies. The reason I'm asking...

    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...
  4. Replies
    16
    Views
    5,295

    Printing out the memory address

    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.
Results 1 to 4 of 4