php json 解析有stdClass Objectmixedjson_decode(string$json[,bool$assoc= false[,int$depth= 512[,int$options= 0]]] )json待解码的jsonstring格式的字符串。This function ...
分类:
Web程序 时间:
2014-07-31 20:02:37
阅读次数:
222
题目:Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthes....
分类:
编程语言 时间:
2014-07-31 02:41:15
阅读次数:
229
题目:Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the neares....
分类:
编程语言 时间:
2014-07-31 02:30:25
阅读次数:
264
1. Partial class: 可以在多个源文件中写一个类。特别适合部分代码自动生成,部分代码手动添加的特性。 编译器在编译前会把所有的源文件合并到意洽。但是一个方法不能在一个文件中开始,在另一个文件中结束。 C#3中独有的pratial 方法:// Generated.csusing S...
分类:
其他好文 时间:
2014-07-30 20:26:24
阅读次数:
243
DFS(Depth First Search) 深度优先搜索BFS (Breadth First Search)宽度优先搜索在算法中常用这两种方法。1) DFS考虑用“递归”实现和用 “栈”实现两种方法,因为对于大型问题搜索深度比较深,如果用递归实现的话,栈空间占用比较多,递归调用需要的额外时间也比...
分类:
其他好文 时间:
2014-07-30 09:54:03
阅读次数:
234
下面是求割點的模板,還有cut_vertex_num[]數組(array)記錄了哪些是割點
Int cut_vertex_num[];
void dfs(int cur,int pa)
{
int child=0,flag=0,i;
low[cur]=dfn[cur]=++depth;
for(i=0;i<adj[cur].size();i++)
{
i...
分类:
其他好文 时间:
2014-07-26 15:32:23
阅读次数:
289
du -h --max-depth=1 work/testing?? 查看文件的大小 df -h 查看硬盘的大小和使用情况 df?? 大概情况同上 rm -f 强制删除 rm -rf 强制递归删除 cp -rp ./top/* ./sharm/?? 递归复制 mysql -u 数据库名 -p 数...
分类:
系统相关 时间:
2014-07-26 03:34:17
阅读次数:
297
1. 没有值怎么办? 客户下了一份订单,有订货日期,但尚未发货,但没有发货日期,怎么表述发货日期? C#2以后使用可空类型。2. 为什么值类型的变量不能是null? 引用类型变量,其值是一个引用,即一个非空引用值提供了访问一个对象 的途径,对于null来说,作为一个特殊值,意味着不引用任何对象。所....
分类:
其他好文 时间:
2014-07-25 16:33:41
阅读次数:
183
用泛型实现参数化类型1. 泛型更好滴编译时检查,能消除很多装箱和拆箱2. 泛型字典Dictionary 1 static Dictionary CountWords(string text) 2 { 3 Dictionary frequencies; 4 frequencies = ...
分类:
其他好文 时间:
2014-07-24 21:32:42
阅读次数:
350
先安装GIT 然后从 git://github.com/phalcon/cphalcon.git 这里下载安装文件 编译完成就可以安装了!编译chmod -R 777 cphalcon1. 创建从C源扩展遵循这些步骤:自动检测你的架构git clone --depth=1 git://github....
分类:
系统相关 时间:
2014-07-24 10:16:33
阅读次数:
273