private static void ReverseArray(int[] array)
{
int temp;
int count = array.Length;
for (int i = 0; i < count/2; i++)
{
temp
= array[count - 1 - i];
array[count
- 1 - i] = array[i];
array[i]
= temp;
}
}

转自:http://www.cnblogs.com/criedshy/archive/2010/04/22/1718002.html

posted on 2010-05-19 19:03  徐翔洋  阅读(340)  评论(1编辑  收藏  举报