A
Alexander Dong Back Kim
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(void)
{
string str = "This object's address is " << this;
}
void Show::show_message(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(void)
{
string str = "This object's address is " << this;
}
void Show::show_message(string str)
{
cout << str;
}
I got errors (obviously).
What would be the solution for this? Any suggestions?
Best regards,
Alex