simple string question...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alexander Dong Back Kim

    simple string question...

    Hi all,

    I wrote a function which has a parameter of "string". When I send the
    string, can I do like the below?

    void Show::caller(vo id)
    {
    string str = "This object's address is " << this;
    }

    void Show::show_mess age(string str)
    {
    cout << str;
    }

    I got errors (obviously).

    What would be the solution for this? Any suggestions?

    Best regards,
    Alex
Working...