//form==>http://www.cnblogs.com/2050/archive/2012/08/10/2632256.htmlhaha
555555555555555555555555555555555haha 555555555555555555555555555555555 wor.....
分类:
其他好文 时间:
2014-05-26 21:02:51
阅读次数:
263
不能再简化了#include#include#includeint
meng_read_proc(char*page,char**start,off_t offset,int count,int*eof,void*data){
char*s="Hello. This is meng p...
分类:
系统相关 时间:
2014-05-26 15:52:49
阅读次数:
463
当textbox为多行时,获取它的行数:int count =
this.txtMsgInfo.Lines.GetUpperBound(0);
分类:
其他好文 时间:
2014-05-26 14:50:35
阅读次数:
292
URL 只是一个 路径 : 协议头:// 域名/ 资源 (就是要查询的内容)
比如http://m.baidu.com/s?word=iOS 上面的是 手机版的域名 UIWebView : 也是一个IOS 程序的控件 能拖 能用代码实现
能设置代理 ...
分类:
Web程序 时间:
2014-05-26 14:17:06
阅读次数:
310
DFS算法,非常容易TLE,需要一个boolean矩阵来记录是否访问过某个节点。写DFS主要就是两个方法:用recursion或者Stack,
用recursion会带来time和memory的cost增加,而且因为要用矩阵做argument,
所以非常担心TLE或者MLE的问题。但是用recurs...
分类:
其他好文 时间:
2014-05-26 13:03:20
阅读次数:
273
Word SearchGiven a 2D board and a word, find if
the word exists in the grid.The word can be constructed from letters of
sequentially adjacent cell, wh...
分类:
其他好文 时间:
2014-05-26 08:21:06
阅读次数:
310
1 //插入排序(一维数组) 2 function insert_sort($arr){ 3
$count = count($arr); 4 for($i=1; $i $tmp){ 8 $arr[$j+1] = $arr[$j]; 9 ...
分类:
Web程序 时间:
2014-05-26 07:52:13
阅读次数:
538
什么是闭包
通俗地讲,JavaScript中每个的函数都是一个闭包,但通常意义上嵌套的函数更能够体现出闭包的特性,请看下面这个例子:var generateClosure
= function(){ var count = 0; var get = function(){ ...
分类:
编程语言 时间:
2014-05-26 07:29:26
阅读次数:
236
假定每个单词用空格隔开。
例子:
输入:how are you!
输出:3
两种方法:
一:
#include
#include
#define SIZE 20
int main()
{
char str[SIZE]={'\0'};
int count=0;
printf("please input the string\n");
gets(str);
put...
分类:
编程语言 时间:
2014-05-26 03:44:36
阅读次数:
284
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
public class TraditionalTimerTest {
static int count;
public static void main(String[] args) {
class MyTimerTask exte...
分类:
其他好文 时间:
2014-05-23 01:45:11
阅读次数:
226