It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete,开发者_运维百科 overly broad, or rhetorical andcannot be reasonably answered in its current form.
相关专题:
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete,开发者_运维百科 overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
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.
精彩评论