
1 dajj 2019 年 9 月 26 日 show your example code to explain |
3 evianby40 OP @dajj double& Array::operator[](int a) { if (a<low || a>up) { cout << "数据越界" << endl; exit(0); } return arr[a - low]; } |
4 dajj 2019 年 9 月 26 日 你这个是运算符重载, 是语言本身的要求。 参考以下两个链接 http://c.biancheng.net/view/2312.html http://c.biancheng.net/cplus/operator/ |
6 wnpllrzodiac 2019 年 9 月 27 日 via Android 支持级联操作? |