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
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