Re: [cpp] 传引用和传指针的区别?
qiaojie
qiaojie at gmail.com
Fri Mar 23 22:43:00 CST 2007
实现上可能没差别,但是在语法和语义上都是有很大差别的。
语法上不用说了,在语义上指针告诉用户可以传递空值,而引用则不能传递空值。
On 3/23/07, Fei Xu <flyingxu at gmail.com> wrote:
>
> 今天被问道这个问题,我的回答是没有区别,对方好像不满意
>
>
> --
> Visual C++ Related Topics
> http://www.codediscuss.com
>
> _______________________________________________
> Cpp mailing list
> Cpp at codingnow.com
> http://codingnow.com/mailman/listinfo/cpp
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codingnow.com/pipermail/cpp/attachments/20070323/73d21af7/attachment.html
More information about the Cpp
mailing list