开发者

about pointer and reference [closed]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜