我有两个阵列。
string[] input; //user input could be any size
string[] output; //a copy of user input but, should not be larger than 50
如果投入长度和带;=50,那么产出就是投入的确切复制件。
如果投入阵列长度大;50个则只复制50个投入内容
www.un.org/Depts/DGACM/index_french.htm
这样做的最有效方式是什么?
UPDATE say input[] has 98 elements. then you would take the first and last elements and then divide the rest by 2 to get 50 elements
98-2=96
96/2=48
2+48=50