并查集合并 #include<iostream> using namespace std; const int MAX = 10010; int father[MAX],root[MAX]; int findfather(int x){ if(x==father[x]) return x; else ...
分类:
其他好文 时间:
2016-11-25 22:48:21
阅读次数:
187
一、父页面给iframe中的子页面传值,把值写入子页面的文本框里 father.html <script language="javascript" src="http://www.aspbc.com/js/jquery.js" type="text/javascript"></script> <s ...
分类:
其他好文 时间:
2016-11-25 19:44:59
阅读次数:
202
1.继承 关键字:extends 重点 a.创建子类对象的时候会调用父类的构造函数,如果是无参数的构造函数,会自动的调用,不用写super() b.Father father=new Son();//Son的实例但是进行了向上转型,father引用可以调用Father类中的函数,以及子类中被重写的函 ...
分类:
其他好文 时间:
2016-11-23 23:31:47
阅读次数:
213
#_*_coding:utf-8_*_
#知识点:经典类和新式类的区别
#父类
classFather(object):
def__init__(self):
self.Fname=‘fffffff‘
print‘father.__init__‘
defFunc(self):
print‘funcfurnc‘
defBar(self):
print‘barbarbar‘
defTest(self):#再定义一个方法
print‘11111‘
print‘test..
分类:
编程语言 时间:
2016-11-19 03:49:33
阅读次数:
198
#_*_coding:utf-8_*_
#父类
classFather:
def__init__(self):
self.Fname=‘fffffff‘
defFunc(self):
print‘funcfurnc‘
defBar(self):
print‘barbarbar‘
defTest(self):#再定义一个方法
print‘11111‘
print‘testtest‘
#子类继承父类,也就是说Son类可以拿到Father类的方法
cla..
分类:
编程语言 时间:
2016-11-18 19:17:02
阅读次数:
135
java 实例化时调用了抽象方法或者class里面某个方法,如果子类有重写改方法,实际运行的是子类重写方法 运行结果: from childA classfrom childB classfrom Father class ...
分类:
编程语言 时间:
2016-11-18 12:05:57
阅读次数:
143
<script type="text/javascript"> var blockNum=10; $(document).ready(function(){ var parentDom=$('#father').find("form"),oriDom=parentDom.children(":fir ...
分类:
Web程序 时间:
2016-11-14 19:34:40
阅读次数:
193
● Fork() 创建子进程。 创建单个子进程: pid_t pid; pid = fork(); if(pid == 0) { printf("I am child, pid=%d. Father pid=%d\n", getpid(), getppid()); } else if(pid > 0 ...
分类:
系统相关 时间:
2016-11-14 16:57:53
阅读次数:
259
BZOJ 1455 左偏树即可 1 #include <cstdio> 2 #define LL long long 3 const LL Maxn=1000100; 4 struct Info{LL l,r,v,Dis;}Tree[Maxn]; 5 LL Father[Maxn],n,m,Dead ...
分类:
其他好文 时间:
2016-11-10 02:52:23
阅读次数:
266
This is where we started We've come a long way since our beginning. It all started as an idea in a garage in Riverdale, Utah. As a dedicated father an ...
分类:
其他好文 时间:
2016-11-08 08:04:26
阅读次数:
218