[Dev-C++] Need help translating from java to c++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <qa...@ho...> - 2002-09-24 22:19:16
|
Hi list.
I'm quite new to c++ and i have written a program in java that I'd like (or=
rather need) to translate to c++, but I don't know how to solve this. How=
do I translate the following dummy java class to an equvalent c++ class?
public class Test{
double[][] input;
public Test(double[][] input){
this.input =3D input;
}
public double[][] getOutput(){
double[][] output =3D new double[input.length][input[0].length];
for(int i=3D0; i<output.length; i++)
for(int j=3D0; j<outout[0].length; j++)
output[i][j] =3D 2*input[i][j];
return output;
}
}
Thanks for your help
/J=F6rgeno
|