int Find (int t)//找{ if(vest[t]==0)return t;//找到其祖先vest[]d的数组初始化为零 return Find(vest[t]);//继续查找}void HeBing(int a,int b){ int x=Find(a); int y=Find...
分类:
其他好文 时间:
2015-12-12 16:55:38
阅读次数:
152
在说继承前我们来先看一段使用类的继承性的代码: class A { public A() { Console.WriteLine("初始化A类"); } public void prind() { Console.WriteLine("A"); } ...
分类:
其他好文 时间:
2015-12-12 15:23:13
阅读次数:
164
1.写法不同静态方法写法为 public static void add()实例化方法写法为 public void add2()2.调用方法不同静态方法只能直接调用静态的方法和属性 写法为:Lianxi.add()//类名.变量实例化方法可以调用实例化的方法和属,也可以调用静态的方法和属性(...
分类:
其他好文 时间:
2015-12-12 15:18:48
阅读次数:
120
禁用长按UIWebView时放大镜及选择功能://通过js调用- (void)webViewDidFinishLoad:(UIWebView*)webView{ // Disable user selection [webView stringByEvaluatingJavaScript...
分类:
Web程序 时间:
2015-12-12 13:58:57
阅读次数:
277
1.泛型类 class Gen { private T t; public T get(){ return t; } public void set(T argt){ t = argt; } } “”内的T为类型参数,只能是类名,不能是基本类型(如int , double),泛型类(...
分类:
编程语言 时间:
2015-12-12 13:57:14
阅读次数:
307
在Nuget在运行安装引用Install-Package Autofac -Version 3.1.0Install-Package Autofac.Mvc4 public static void RegisterAutofac() { Contai...
分类:
Web程序 时间:
2015-12-12 12:36:40
阅读次数:
156
今天遇到这个问题 谁也因此没有满足这方面的需求 今天会见 网上办理登机手续 未找到 好 我只能说自己的问题但 幸好,kai哥 就攻克了 !就是在- (void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath...
分类:
其他好文 时间:
2015-12-12 12:24:52
阅读次数:
115
private void button3_Click(object sender, EventArgs e) { System.Timers.Timer t = new System.Timers.Timer(500); //实例化Timer类,设置间隔时间...
#pragma mark - 添加手势隐藏键盘- (void)tabBackground{ UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapO....
分类:
其他好文 时间:
2015-12-12 11:06:01
阅读次数:
392
void CreateLineMaterial() { if (!mat) { mat = new Material("Shader \"Lines/Colored Blended\" {" + "SubShader { Pass { " + ...
分类:
编程语言 时间:
2015-12-12 10:58:15
阅读次数:
157