关于C++语言程序设计例6—18中的&,即Point &element(int index){ return points [index]; }
书上代码#include<iostream>#include<cassert>using namespace std;class Point{public: Point():x(0),y(0){ cout<<"Default Constructor called"<<endl; } Point(int x, int y):x(x), y(y){ cout<<"Constructo
原创
2020-09-02 10:03:47 ·
985 阅读 ·
3 评论