问题:判断链表是否有环。分析:利用快慢指针slow,fast slow指针每次走一步,fast指针每次走两步,倘若存在环,则slow和fast必定在某一时刻相遇。 由于fast指针走的比slow快所以循环的时候只需要判断fast和fast->next不为空,判断fast->next是因为...
分类:
其他好文 时间:
2014-07-31 12:25:26
阅读次数:
236
using System; using System.Collections.Generic; using System.Linq; using System.Text; using graphlei;namespace graphlei { /// /// 图形类 /// public...
分类:
其他好文 时间:
2014-07-31 12:13:16
阅读次数:
247
这节我们来看看怎么让Lync从AD中同步组织架构。在第1节中,我们知道了怎么在Lync中显示指定用户。那么如果我们稍微扩展下,只要我们能想办法读到AD中用户和OU的信息,再将其显示在Lync的窗口中,那么我们的目的就能达成了。要显示出Lync用户,就要知道用户的Sip属性值,我们打..
分类:
其他好文 时间:
2014-07-31 09:58:27
阅读次数:
588
参数数组:关键字params,接受参数,多余的都加到数组中static void Main(string[] args) { meas("1","2","3") } public static void meas(string paramNumber, params string[] arrag) ...
分类:
其他好文 时间:
2014-07-31 09:46:45
阅读次数:
172
using System; using System.Collections.Generic; using System.Linq; using System.Text;namespace ConsoleApplication1 { class Program { static void Ma...
分类:
其他好文 时间:
2014-07-31 09:46:35
阅读次数:
233
#region 数组 最大值 最小值 平均值 求和 冒泡排序 int[] arrag = new int[5] { 31, 62, 83, 54, 85 }; for (int i = 0; i arrag[j]) { int myarrag; myarrag = arrag[i]; a...
分类:
其他好文 时间:
2014-07-31 09:44:06
阅读次数:
181
1到4的随机数Random Random1 = new Random(); int i = Random1.Next(1,4); Console.WriteLine(i); Console.ReadKey();
分类:
其他好文 时间:
2014-07-31 09:41:45
阅读次数:
209
输出:Console.Write("hello");换行输出:Console.WriteLine("hello");获取输入的值:Console.ReadLine()控制台不关闭:Console.ReadKey();占位符:Console.WriteLine("Sum:{1} Minus:{0} R...
分类:
其他好文 时间:
2014-07-31 09:35:45
阅读次数:
217
一、安装基础环境包yum -y install gcc gcc-c++openssl*yum -y install libjpeg libjpeg-devel libpng libpng-devel freetype freetype-develyum -y install libxml2 libx...
分类:
其他好文 时间:
2014-07-31 02:22:45
阅读次数:
218
Midlife for many is a time of transition, a time of questioning and a time of change, not just physically, but emotionally and mentally. It’s when you...
分类:
其他好文 时间:
2014-07-31 02:18:35
阅读次数:
325