由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - C++ Q12: Reference Types
相关主题
相关话题的讨论汇总
话题: line话题: int话题: const话题: reference话题: c++
进入Programming版参与讨论
1 (共1页)
c**********e
发帖数: 2007
1
Line 1: int i=5;
Line 2: int& k=i;
Line 3: const int* m;
Line 4: int const* n;
Line 5: int*& o=8;
Line 6: const int*& p=m;
Line 7: int&& q=k;
Referring to the code above, which line or lines fail to compile?
(Multiple choice with 2 correct answers)
1
2
3
4
5
6
7
d*****d
发帖数: 46
2
57

【在 c**********e 的大作中提到】
: Line 1: int i=5;
: Line 2: int& k=i;
: Line 3: const int* m;
: Line 4: int const* n;
: Line 5: int*& o=8;
: Line 6: const int*& p=m;
: Line 7: int&& q=k;
: Referring to the code above, which line or lines fail to compile?
: (Multiple choice with 2 correct answers)
: 1

1 (共1页)
进入Programming版参与讨论
相关主题
相关话题的讨论汇总
话题: line话题: int话题: const话题: reference话题: c++