如何返回存储在a中的多维数组 private我的类字段中?
class Myclass {
private:
int myarray[5][5];
public:
int **get_array();
};
// This does not work:
int **Myclass::get_array() {
return myarray;
}
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
无法转换
int (*)[5][5]为int**回报