0
How can i assign entire array values to another array
hi . i used genetic algorithm for finding best solution in my program and i want to assign newgeneration to current generation.they are tow dimentional arrays.how can assign entire array values to another array. is it wright: currentgenration= newgeneration; (where currentgeneration = [ 100,10] and also newgeneration)
4 ответов
+ 1
you can use array copy as mentioned in the documentation => https://msdn.microsoft.com/en-us/library/k4yx47a1(v=vs.110).aspx
that will be helpful for your mutation operations.
0
ok thank you. but when i want to copy entire elements ,for length parameter what i need to enter?
0
thanks every one.