变量声明之间的区别...... [英] Difference between variable declarations...
本文介绍了变量声明之间的区别......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
之间有什么区别:
int&我;
和
int i;
?
>
干杯,
Paulo Matos
Hi all,
What''s the difference between:
int& i;
and
int i;
?
Cheers,
Paulo Matos
推荐答案
pmatos写道:
pmatos wrote:
大家好,
有什么区别:
int& i;
int i;
?
Hi all,
What''s the difference between:
int& i;
and
int i;
?
前者是对整数的引用,后者是整数。
The former is a reference to an integer, the latter is an integer.
得到它,谢谢。 5.5 C ++ PL。 :)
Got it, thanks. 5.5 of C++PL. :)
" Rolf Magnus" < RA ****** @ t-online.de>在消息中写道
news:d1 ************* @ news.t-online.com ...
"Rolf Magnus" <ra******@t-online.de> wrote in message
news:d1*************@news.t-online.com...
pmatos写道:
pmatos wrote:
大家好,
有什么区别:
int& i;
?
Hi all,
What''s the difference between:
int& i;
and
int i;
?
前者是对整数,后者是一个整数。
The former is a reference to an integer, the latter is an integer.
前者不是合法的C ++,必须初步确定引用。
Sharad
Also former is not legal C++, a reference has to be initialized for sure.
Sharad
这篇关于变量声明之间的区别......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文