摘要: 首先创建一个服务器using UnityEngine;using System.Collections;using System.Net.Sockets;using System.Net;using System.Threading; //引入线程的包public class ServerSocke... 阅读全文
posted @ 2015-11-16 21:23 狂奔的老鳖 阅读(964) 评论(0) 推荐(0) 编辑
摘要: static bool whilehalf(int n) { int low = 0; //低位 int hight = arr.Length - 1; //高位 int c = (hight + low)/2... 阅读全文
posted @ 2015-11-16 21:03 狂奔的老鳖 阅读(1573) 评论(0) 推荐(0) 编辑
摘要: public void QuickSort(int[] arr, int left, int right) //快速排序 { //先从数列中去处一个数作为基准数 //分区过程,将比这个数大的数全放在他的右边,小于或者等于放在左边 ... 阅读全文
posted @ 2015-11-16 21:00 狂奔的老鳖 阅读(2347) 评论(0) 推荐(0) 编辑