假设:
class A { private: int num; public: A(int _num) { num = _num; } int getValue() { return num; } void getArrayElements(int i) { cout << a[i].getValue() << endl; // ERROR HAPPENED HERE } } a[114514];
代码在ERROR的地方报错,我该怎么让它访问a数组呢?