typedef void (*callbackFun)(int a, int b);struct exm { int type; callbackFun fun;};A pointer is a special kind of variable that holds the add...
分类:
其他好文 时间:
2015-01-04 06:25:12
阅读次数:
232
1.css文件 span.dropList {display:inline-block; height:20px;border:1px solid #ccc; cursor:pointer; background:url(../images/xj.png) #fff no-repeat center...
分类:
Web程序 时间:
2015-01-02 17:20:35
阅读次数:
310
Swap的简单实现//C语言方式(by-pointer):
template
bool swapByPointer(Type *pointer1, Type *pointer2)
{
//确保两个指针不会指向同一个对象
if (pointer1 == NULL || pointer2 == NULL)
{
return false;
}...
分类:
其他好文 时间:
2015-01-01 11:19:13
阅读次数:
195
Insert title here auto move no-drop col-resize all-scroll pointer not-allowed row-resize crosshair progress e-resize ne-resize default ...
分类:
编程语言 时间:
2014-12-31 16:09:46
阅读次数:
273
CSS 把你的光标放到相应文字上查看效果
要注意光标的实际效果依赖于用户的系统设置,与你在这里看到的效果并不一定一致。
十字准心 cursor: crosshair;
手 cursor: pointer; cursor: hand;写两个是为了照顾IE5,它只认hand。
等...
分类:
Web程序 时间:
2014-12-31 12:55:50
阅读次数:
1080
原题地址:https://oj.leetcode.com/problems/copy-list-with-random-pointer/题意:A linked list is given such that each node contains an additional random pointe...
分类:
编程语言 时间:
2014-12-31 08:40:56
阅读次数:
203
Set Scroll Normal1echo "pointer = 1 2 3 4 5 6 7 8 9 10 11 12" > ~/.Xmodmap && xmodmap .XmodmapSet Scroll Inverted/Reverse1echo "pointer = 1 2 3 5 4 6 ...
分类:
系统相关 时间:
2014-12-30 22:06:29
阅读次数:
256
Two pointer, 一头一尾;brute force的话需要时间复杂度为O(n^2);但是two pointer的方法可以进行简化(通过对某些case的省略): 具体: height[low] = height[high]: 则知道 height[high]与任意height[low...
分类:
其他好文 时间:
2014-12-30 09:11:34
阅读次数:
153
通过手势进行图片的缩放,在onTouch事件中,MotionEvent.ACTION_POINTER_DOWN触发时则代表是多点触控,可以通过两点缩放的距离来缩放图片。当图片加载完成时设置图片居中,默认大小为屏幕的80%,主要代码如下:privatevoidsetTreeObserver(){
viewTreeObserver=p_w_picpath.get..
分类:
其他好文 时间:
2014-12-26 18:48:42
阅读次数:
170
这篇文章简单的叙述一下函数指针在结构体中的应用,为后面的一系列文章打下基础本文地址:http://www.cnblogs.com/archimedes/p/function-pointer-in-c-struct.html,转载请注明源地址。引言指针是C语言的重要组成部分, 于是深入理解指针并且高效...
分类:
编程语言 时间:
2014-12-25 14:21:46
阅读次数:
188