- #刷题
- #学c/c++
请教C++编译判断题

11139
地里小伙伴的面经题,实在没想通,来请教大家
int x;
int &y = x;
补充内容 (2015-8-15 00:13):
不好意思,圆括号是失误,重点在下面两句
最后一行对[backcolor=rgb(245, 222, 179)]object[/backcolor]的操作,和以下对[backcolor=rgb(245, 222, 179)]variable[/backcolor]的操作相比有什么异同?读C++的code,说说编译时会出什么错。记不太清了,大概是这样
class Person (
int age;
);
Person p1;
Person & p2 = p1;
int x;
int &y = x;
补充内容 (2015-8-15 00:13):
不好意思,圆括号是失误,重点在下面两句
9条回复
热度排序