Hi good people once again,
I just stared C#, now i have a problem
with returning an array in a function
here is my Code:
it says "Error 1 Cannot implicitly convert type 'string[*,*]' to 'string[][]"
look forward to your suggestions
I just stared C#, now i have a problem
with returning an array in a function
here is my Code:
public string[][] PopulationAndFittness(string ChildP,int Row,int column)
{
string [,]P= new string[100000,2];
P[ Row,column] = ChildP;
int fit = fitness(ChildP);
P[Row, column] = Convert.ToString(fit);
return [u]P;[/u]
}
it says "Error 1 Cannot implicitly convert type 'string[*,*]' to 'string[][]"
look forward to your suggestions