*&代表 [英] What does *& stand for

查看:84
本文介绍了*&代表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在其中一个代码中,我看到了这样的声明

Hi ,
In one of the code i saw a declartion like this

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号

推荐答案




在其中一个代码中我看到了这样的声明
Hi ,
In one of the code i saw a declartion like this
展开 | 选择 | Wrap | 行号





In其中一个代码我看到了这样的声明
Hi ,
In one of the code i saw a declartion like this
展开 | 选择 | Wrap | 行号



Base :类型

Base *:指向类型的指针

Base *&:对类型指针的引用

p tr:这是参数的名称。


它是一个虚拟成员函数,参数如上面所示,它是

不是返回任何东西(无效)。


亲切的问候,


Jos
Base: the type
Base*: a pointer to the type
Base*&: a reference to a pointer of the type
ptr: this is the name of the parameter.

It''s a virtual member function with a parameter as decsribed above, and it
doesn''t return anything (void).

kind regards,

Jos



好的,很高兴知道。但是有可能用任何一个小例子来解释吗?


谢谢。

okay, Good to know. But is it possible to explain with any small example?

Thank you.


这篇关于*&amp;代表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆