开发者

about pointer and reference [closed]

开发者 https://www.devze.com 2023-03-07 13:22 出处:网络
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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号