1. 指针使用2. 在循环体内使用 return 的坏处3. quick and dirty,
performance and design strategy
分类:
编程语言 时间:
2014-07-22 23:06:33
阅读次数:
356
一个通常的函数调用的例子://声明(一般头文件中)void MyFun(int x);
//此处的申明也可写成:void MyFun( int );int main(int argc, char* argv[]){ MyFun(10);
//这里是调用MyFun(10);函数 return 0;}v...
分类:
其他好文 时间:
2014-07-22 23:06:16
阅读次数:
239
function trimStr(str){ return
str.replace(/(^\s*)|(\s*$)/g,"");}用的时候就是直接 var 变量=trimStr(需要去空格的字符串);
分类:
Web程序 时间:
2014-05-01 15:47:26
阅读次数:
347
Given a strings, partitionssuch that every
substring of the partition is a palindrome.Return the minimum cuts needed for a
palindrome partitioning ofs...
分类:
其他好文 时间:
2014-05-01 14:47:09
阅读次数:
409
#include "stdio.h"/*int* set(int a,int *c){int
*b;b=malloc(sizeof(int)*3);c[0]=a;c[1]=1+a;c[2]=2+a;b[0]=13;b[1]=14;b[2]=15;return
b;}*/char *set(void)...
分类:
编程语言 时间:
2014-05-01 13:56:31
阅读次数:
306
Reverse digits of an integer.Example1:x = 123,
return 321Example2:x = -123, return -321Have you thought about this?Here are
some good questions to ask...
分类:
其他好文 时间:
2014-05-01 01:20:59
阅读次数:
334
iOS中block类型大全typedef的block作为属性的block作为变量的block作为方法变量入参的block作为方法参数的block无名block内联函数的block递归调用的block作为方法返回值的block作为函数名的block(太过奇葩,完全不知道怎么用-_-!)
分类:
移动开发 时间:
2014-04-30 23:32:04
阅读次数:
609
微软bing搜索每天都会换一张壁纸,而且分辨率都高,很适合当做壁纸,写了一个python去获取张壁纸,代码很简单
import urllib
import re
import time
def getHtml(url):
return urllib.urlopen(url).read()
def getImgUrl(html):
reg=re.compile(r'(http:/...
分类:
编程语言 时间:
2014-04-27 21:31:06
阅读次数:
558
/*************************************************************************
File Name: bitree.cpp
Author: yubo
Mail: yuzibode@126.com
Created Time: 2014年04月27日 星期日 23时45分04秒
学...
分类:
其他好文 时间:
2014-04-27 21:27:00
阅读次数:
373
leetcode, Regular Expression Matching...
分类:
其他好文 时间:
2014-04-27 21:24:04
阅读次数:
272