如题,最好是能连网的,单机的也行,简单的就好了

解决方案 »

  1.   


     又是一个可以写一本书的问题
      
     http://topic.csdn.net/u/20081023/14/c508524a-cbe8-400b-a97c-e3856312522d.html  呵呵
      

  2.   

    using System;
    // 冒泡排序namespace BubbleSorter
    {
        public class NewBubbleSorter
        {
            public void newSort(int[] list)
            {
                int[] Temparry = new int[list.Length];
                int[] arryCard2 = new int[list.Length];
                bool done = false;
                int j = 1, i, temp;
                //  冒泡算法開始
                for (int Q = 1; Q < 2; Q++)
                {
                    while ((j < list.Length) && (!done))
                    {
                        done = true;
                        for (i = 0; i < list.Length - j; i++)
                        {
                            if (list[i] > list[i + 1])
                            {
                                done = false;
                                temp = list[i];
                                list[i] = list[i + 1];
                                list[i + 1] = temp;
                            }
                        }
                        j++;
                    }
                    for (int w = 0; w < list.Length; w++)
                    {
                        arryCard2[w] = list[w];
                        Temparry[w] = list[w] % 100;
                        list[w] = Temparry[w];
                    }
                    j = 1;
                    done = false;
                    Array.Sort(list, arryCard2);
                }
                // 大小重排   21KQJ109876543
                for (int t = 0; t < list.Length ; t++)
                {
                    Temparry[t] = arryCard2[t];            }
                for (int a = 0, q = 16; a < list.Length ; a++, q--)
                {
                    arryCard2[a] = Temparry[q];
                    list[a] = arryCard2[a];
                }        }    }
    }