摘要:
int count = 0; Random r = new Random(); List list = new List(); Console.WriteLine("开始for循环添加:"); int ticks = Environment.TickCount; for (int i = 0; i t == 61)) { count += 1; } temp = Math.Abs(Envi... 阅读全文
摘要:
直接看代码: //1.初始化数据 int len = 10;//横排的长度 int dic = 0;//4个方向。 int x = 0, y = 0;//当前的位置。 int v = 1;//当前的值 int q = 0;//当前已经画的圈数 int[][] info = new int[len][];//存放数组 string zero = "";//格式化数据 int zl = len * l... 阅读全文
摘要:
IDictionaryEnumerator em = HttpContext.Current.Cache.GetEnumerator(); while (em.MoveNext()) { if (需要删除的条件) { HttpContext.Current.Cache.Remove(em.Key.ToString()); } } 阅读全文