about pointer and reference [closed]
I have a pointer *p
and a reference &s
. I would like all the values that s
contains to be copied by p
. How can I do this?
Need some code example. THX
Your question is a lot less than clear. But for now, I'll give you this:
*p = s;
If this doesn't answer your question, then you need to clarify exactly what you're after.
精彩评论