1class Program
 2    {
 3        public static void Main()
 4        {
 5            int[] sortArray =136107645433112444 };
 6            FuncSort(sortArray);
 7            Console.ReadLine();
 8        }

 9
10        public static void FuncSort(int[] sortArray)
11        {
12            
13            int tempInt;
14            for (int i = 0; i < sortArray.Length; i++)
15            {
16                for (int j = i + 1; j < sortArray.Length; j++)
17                {
18                    if (sortArray[i] > sortArray[j])
19                    {
20                        tempInt = sortArray[i];
21                        sortArray[i] = sortArray[j];
22                        sortArray[j] = tempInt;
23                    }

24                }

25            }

26
27            foreach (int i in sortArray)
28            {
29                Console.Write("{0},", i);
30            }

31
32        }

33    }
posted on 2008-02-19 21:20  西红柿炒鸭蛋  阅读(528)  评论(0编辑  收藏  举报