- 博客(1)
- 资源 (5)
- 收藏
- 关注
原创 非常量引用的初始值必须为左值的问题
首先,先看下面一个例子:eg.1#includeiostream>usingnamespace std;int main(){int i =2;double &r =i;return 0;}gcc error: invalid initialization of reference of type 'double&' from express
2013-06-15 11:00:33
1482
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人