static_cast,dynamic_cast, const_cast, reinterpret_castdynamic_cast比static_cast多了安全检测,判断源和目标有无继承被继承关系,所以强制将父类指针赋给子类指针的时候只能用static_cast。如class D:public ...
分类:
编程语言 时间:
2014-12-24 07:36:37
阅读次数:
145
题目:
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
For example,
Given n = 3, there are a total of 5 unique BST's.
1 3 3 2 ...
分类:
编程语言 时间:
2014-12-23 22:47:03
阅读次数:
301
在Spark1.2.0版本中是用parquet存储类型时注意事项:sql语句:select * from order_created_dynamic_partition_parquet;在spark-sql中执行结果:2014-05 [B@4621484a [B@3311163e2014-0...
分类:
数据库 时间:
2014-12-23 19:17:22
阅读次数:
326
题目:
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
思路解析:
无法一下子判断是 Fib...
分类:
编程语言 时间:
2014-12-23 15:39:32
阅读次数:
309
题目:
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down or r...
分类:
编程语言 时间:
2014-12-23 14:01:48
阅读次数:
218
2014-12-23 测试机器配置:128G ssd,mac pro i5双核, 8G内存1 开启APC前,先测试:500并发,10秒,本地测试以下地址:http://my.m.zmqnw/http://my.m.zmqnw/dynamichttp://my.m.zmqnw/dynamic/2600...
分类:
其他好文 时间:
2014-12-23 01:30:40
阅读次数:
228
时间过得很快,再过几天就是新的一年了,在此总结一下过去的一年:
1. 苦练驾驶技术,一年没有出险:)
2. 自驾车去了一趟庐山,来回近2000KM
3. 坚持游泳,个人蛙泳纪录突破2500米
4. 看了几本好书《新机器的灵魂》,《再定位》,《闪电战》,《我的互联网方法论》,《Programming Erlang》
5. 学了几个新的技术:Python,Erlang,Django, nod...
分类:
其他好文 时间:
2014-12-22 18:05:09
阅读次数:
182
APUE --- Advanced programming in the unix environment
这本书我看了好多遍....
原因嘛, 第一次看到进程那里,看不懂了,前面基础没看好,从头再来
第二次看到进程通信了,看不懂了,从头再来
... ...
估计看了四次,还是五次,忘记了,才看到第19章.感觉后面和网络编程就关系就没看了.
老老实实一个个照着例...
分类:
其他好文 时间:
2014-12-22 18:04:02
阅读次数:
232
本文的实验环境为:Centos4.5,nginx版本为:nginx-0.7.26pcre-7.8.tar.gz 正则表达式下载地址:ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ nginx-0.7.26.tar下载地址:http://w...
分类:
Web程序 时间:
2014-12-22 17:45:01
阅读次数:
208
我们用Eclipse创建Maven结构的web项目的时候选择了Artifact Id为maven-artchetype-webapp,由于这个catalog比较老,用的servlet还是2.3的,而一般现在至少都是2.5,在 Project Facets里面修改Dynamic web module为...
分类:
Web程序 时间:
2014-12-22 14:21:36
阅读次数:
235