首先来查看android sdk文档,有这么一段话LinearLayoutalso supports assigning aweightto individual children with theandroid:layout_weightattribute. This attribute assi...
分类:
移动开发 时间:
2015-08-04 00:13:02
阅读次数:
198
今天配置vim没有成功,老是显示什么error,唉,其实之前成功过的,只不过是重装了dev,然后就变了,可能环境
变量的问题,但是我都改了的啊,以后再调吧。。。
这道题其实不是我想出来的看的题解,又看题解了。。。好吧,既然看了题解就得好好掌握才是。用到了我刚刚在
c++ primer里面学的string类,挺好用的,以后我准备写程序尽量用c++内容,多练练。。
又加深理解了qsort调用的...
分类:
编程语言 时间:
2015-08-03 01:18:33
阅读次数:
172
题目:
There are N children standing in a line. Each child is assigned a rating value.
You are giving candies to these children subjected to the following requirements:
Each child must have at...
分类:
编程语言 时间:
2015-08-01 23:40:01
阅读次数:
221
1.delegate传值,传事件。1、避免子类化带来的过多的子类以及子类与父类的耦合2、通过委托传递消息机制实现分层解耦eg.代理#import @class Children; @protocol ChildrenDelegate @required- (void)Eat:(Children *....
分类:
其他好文 时间:
2015-08-01 17:03:18
阅读次数:
105
.slice()类似于数组的slice方法,就是给以一个jquery集合通过下标来筛选的例如:$('li').slice(2).css('background-color', 'red');表示从第三个元素到结尾,$('li').slice(2, 4).css('background-color',...
分类:
其他好文 时间:
2015-08-01 01:03:44
阅读次数:
98
分为6类:1)布局控件。如Grid, StackPanel, DockPanel.共同的父类是Panel.可以容纳多个控件或嵌套其他布局控件。 这类控件非常重要,内容属性是Children,Panel元素控制他们的布局。包括Canvas, DockPanel, Grid, TabPanel...
Who Gets the Most Candies?
Time Limit: 5000MS
Memory Limit: 131072K
Total Submissions: 11682
Accepted: 3653
Case Time Limit: 2000MS
Description
N children are si...
分类:
其他好文 时间:
2015-07-30 21:22:23
阅读次数:
103
jQuery.parent(expr) //找父元素jQuery.parents(expr) //找到所有祖先元素,不限于父元素jQuery.children(expr)//查找所有子元素,只会找到直接的孩子节点,不会返回所有子孙jQuery.contents() //查找下面的所有内容,包括节点和...
分类:
Web程序 时间:
2015-07-30 13:20:08
阅读次数:
164
1.题目There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following requirements:Each child must have at least one ca...
分类:
其他好文 时间:
2015-07-29 15:57:18
阅读次数:
149
Children of the Candy Corn
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 10975
Accepted: 4731
Description
The cornfield maze is a popular Halloween treat...
分类:
其他好文 时间:
2015-07-28 10:47:44
阅读次数:
103