$(function(){ var make="ad"; var kaka="mon";
function show(a,b){ alert(a+"-"+b); } setInterval(function(){ show( make,kak...
分类:
其他好文 时间:
2014-07-22 23:17:35
阅读次数:
434
【转自】http://www.cnblogs.com/witxjp/archive/2011/04/03/2004556.htmlVisual
Assist(强烈推荐)网址:http://www.wholetomato.com/功能:VA从5.0一直到现在的VAX,功能越来越强大,除了以前版本中的自...
分类:
编程语言 时间:
2014-07-22 23:17:34
阅读次数:
352
并查集的路径压缩。 1 #include 2 #include 3 4 #define MAXNUM
100005 5 6 int deg[MAXNUM], bin[MAXNUM]; 7 char isCycle[MAXNUM]; 8 9 int
find(int x) {10 i...
分类:
其他好文 时间:
2014-04-29 17:22:46
阅读次数:
308
Problem description:given a string, find the
longest palindrome string in itSolution:1.brute force O(n^3)just enumerate start
and end of the substring...
分类:
其他好文 时间:
2014-04-29 17:22:46
阅读次数:
308
使用字典的坏处一般情况下,设置数据和取出数据都使用“字符串类型的key”,编写这些key时,编译器不会有任何友善提示,需要手敲dict[@"name"] =
@"Jack";NSString *name = dict[@"name"];手敲字符串key,key容易写错Key如果写错了,编译器不会有任...
分类:
移动开发 时间:
2014-04-29 17:21:47
阅读次数:
525
文本输入框作为一个最基本的UI控件,被众多UI框架默认支持。Windows下最简单的就是CEdit(WTL封装),也有更为复杂的CRichEdit(WTL封装)。文本输入框是基本控件中最难实现的控件之一,估计这也是Chrome浏览器(For
Windows)一直使用原生文本输入框封装,而不是自行实现...
分类:
其他好文 时间:
2014-04-29 17:21:46
阅读次数:
492
Problem C: A Walk Through the ForestJimmy
experiences a lot of stress at work these days, especially since his accident
made working difficult. To rel...
分类:
其他好文 时间:
2014-04-29 17:21:46
阅读次数:
368
如果用下面第1行的写法,调用[NSObject
cancelPreviousPerformRequestsWithTarget:self
selector:@selector(removeFromSuperview) object:nil];可以生效如果用下面第3行的写法,调用[NSObject
c...
分类:
其他好文 时间:
2014-04-29 17:21:46
阅读次数:
326
//冒泡排序publicclassbubblesorter{publicvoidsort(int[]list){inti,j,temp;booldone=false;j=1;while((jlist[i+1]){done=false;temp=list[i];list[i]=list[i+1];li...
分类:
其他好文 时间:
2014-04-29 17:21:45
阅读次数:
429