码迷,mamicode.com
首页 >  
搜索关键字:child    ( 3634个结果
多态、id类型与简单工厂模式
ID类型 objective-c中id可以指向任何对象,在使用id的时候注意:不要再id后面加上'*' 。 id object = [[Child alloc] init]; // 类型转换 Child *child = (Child *) object ; [child myMethod] ;id...
分类:其他好文   时间:2015-03-11 23:23:34    阅读次数:130
jquery修改table某列的值
开发的过程中,我们经常会遇到一些数和值之间的转换,比如本例:学部:1、小学,2、初中,3、高中;当然实现方法很多种,可以后台代码,也可以使用脚本...修改前:修改后:代码:$("#tbList td:nth-child(4)").each(function () { switch ($(this)....
分类:Web程序   时间:2015-03-11 10:48:05    阅读次数:268
python中的import,reload,以及__import__
import作用:导入/引入一个python标准模块,其中包括.py文件、带有__init__.py文件的目录。e.g:importmodule_name[,module1,...]frommoduleimport*|child[,child1,...]说明:多次重复使用import语句时,不会重新...
分类:编程语言   时间:2015-03-11 08:08:48    阅读次数:126
6.:first-child子元素过滤选择器
通过上面章节的学习,我们知道使用:first过滤选择器可以获取指定父元素中的首个子元素,但该选择器返回的只有一个元素,并不是一个集合,而使用:first-child子元素过滤选择器则可以获取每个父元素中返回的首个子元素,它是一个集合,常用多个集合数据的选择处理。如下图,如果想把页面中每个ul中的第一...
分类:其他好文   时间:2015-03-10 18:44:19    阅读次数:94
PAT:1004. Counting Leaves (30) AC
#include#includeconst int MAX=510;using namespace std;int n,m,le=0; //节点数,非叶子节点数,最深层叶层数vector child[MAX]; //存储孩子情况int number[MAX]; //...
分类:其他好文   时间:2015-03-10 16:49:01    阅读次数:149
qtp childObjects用法
ChildObjects:Returns the collection of child objects contained within the object.F1帮助解释:返回当前调用对象的所有子对象这种解释很抽象,下面我们来说一种场景,比如page对象,一个页面有100个button按钮需要一...
分类:其他好文   时间:2015-03-09 17:26:48    阅读次数:161
CSS3属性选择通配符
CSS3增加了更多的CSS选择器,可以实现更简单但是更强大的功能,比如:nth-child()等。Attribute selectors:在属性中可以加入通配符,包括^,$,*[att^=val]:表示开始字符是val的att属性[att$=val]:表示结束字符是val的att属性[att*=va...
分类:Web程序   时间:2015-03-09 12:25:38    阅读次数:148
A1066. Root of AVL Tree (25)
An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any...
分类:其他好文   时间:2015-03-08 21:23:08    阅读次数:173
PAT:1079. Total Sales of Supply Chain (25) AC
#include#include#includeusing namespace std;const int MAX=100010;int DEPest=0;int root=-1,N;double P,r,sum=0;vector child[MAX]; //child[父亲][孩子]...
分类:其他好文   时间:2015-03-08 15:26:07    阅读次数:138
PAT:1090. Highest Price in Supply Chain (25) AC
#include#includeusing namespace std;const int MAX=100010;int DEPest=0,times=0;vector child[MAX]; //child[父亲][孩子] 二维数组表示树形结构void DFS(int root,i...
分类:其他好文   时间:2015-03-08 14:08:55    阅读次数:178
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!