一道c++笔试题
摘要:
1 #include <vector> 2 3 struct Point { 4 Point(int xx, int yy) 5 : x(xx) 6 , y(yy) 7 {} 8 9 int const x;
10 int const y;
11 };
12
13 int main()
14 {
15 std::vector<Point> pts;
16 pts.push_back(Point(0, 0));
17 return 0;
18 }编译出现下列错误:14.cpp: 在成员函数‘Po... 阅读全文
posted @ 2012-10-27 19:53 woshizyl 阅读(301) 评论(0) 推荐(0) 编辑