#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#pragma comment(linker, "/STACK:1024000000");
#define EPS (1e-6)
#define LL long long
#de...
分类:
其他好文 时间:
2014-11-13 20:55:14
阅读次数:
136
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get ...
分类:
其他好文 时间:
2014-11-13 20:50:45
阅读次数:
197
在viewDidLoad中初始化需要的子控件,然后提供改变这些子控件的开放接口,然后使用一个bool变量来保存是否已经设置了子类控件的frame类似-(void)layoutSubviews{ [super layoutSubviews];#pragma mark 这个变量很重要,如果没有...
分类:
其他好文 时间:
2014-11-13 18:39:59
阅读次数:
194
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:
其他好文 时间:
2014-11-13 18:07:10
阅读次数:
212
Bootstrap 工具提示(Tooltip)插件 当您想要描述一个链接的时候,工具提示(Tooltip)就显得非常有用。工具提示(Tooltip)插件是受 Jason Frame 写的 jQuery.tipsy 的启发。工具提示(Tooltip)插件做了很多改进,例如不需要依赖图像,而是改用 CS...
分类:
其他好文 时间:
2014-11-13 15:56:37
阅读次数:
295
很多时候,我们要使用到鼠标划词,然后获得划过的词文字内容,根据这个需求,写了如下代码,可以进行拓展、 是客户端javascript最高层对象之一,只要打开浏览器窗口,不管该窗口中是否有打开的网页,当遇到BODY、FRAMESET或FRAME元素时,都会自动建立window对象的实例。另外,该...
分类:
编程语言 时间:
2014-11-12 22:59:38
阅读次数:
209
3.0以前,android支持两种动画模式,tween animation,frame animation,在android3.0中又引入了一个新的动画系统:property animation,这三种动画模式在SDK中被称为property animation,view animation,drawable ...
分类:
移动开发 时间:
2014-11-12 18:18:17
阅读次数:
340
Frame动画就像是gif图,通过一些静态图片来达到动画的效果。
Android sdk中的AnimationDrawable就是专门针对Frame动画,当然Frame动画也可在java代码或者xml中写,但是提倡大家还是在xml中写,先上个效果图。
<animation-list xmlns:android="http://schemas.android.com/apk/res/a...
分类:
移动开发 时间:
2014-11-12 17:56:24
阅读次数:
193
一、实现效果二、使用纯代码自定义一个tableview的步骤1.新建一个继承自UITableViewCell的类2.重写initWithStyle:reuseIdentifier:方法添加所有需要显示的子控件(不需要设置子控件的数据和frame, 子控件要添加到contentView中)进行子控件一...
分类:
移动开发 时间:
2014-11-12 16:25:45
阅读次数:
289