Hi, Im currently teaching myself c++ and translating some of my java programs, to ease the transition. Could anyone tell me how to translate the following piece of code
I've tried what i thought would be logical, in the header file havingCode:int[][] myArray; public void doSomething(int[][] myArray) { this.myarray = myarray; }
then in the class fileCode:int myArray[][];
But it wants the initial dimensions size when I try to compile it. Problem is, I wont know how big the array is, untill the method receives it.Code:void ThisClass::doSomething(int array[][]) { myArray = array; }