- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 LeetCode-226. Invert Binary Tree
Invert a binary tree. 4 / \ 2 7 / \ / \ 1 3 6 9 to 4 / \ 7 2 / \ / \ 9 6 3 1 /** * Definition for a binary tree node. * struct TreeNode { * int
2016-09-07 22:27:34
220
原创 string const char *和char *的转换
1. const char* 和string 转换 (1) const char*转换为 string,直接赋值即可。 EX: const char* tmp = "tsinghua". string s = tmp; (2) string转换为const char*,利用c_str() EX: string s = "ts
2016-05-02 10:26:54
505
原创 SSH框架整合问题,java.lang.reflect.InvocationTargetException
在做SSH项目的时候,先建好数据库表格然后反向生成了Hibernate的DAO类。 在自动生成的DAO类里面有一个方法 public List findByProperty(String propertyName, Object value) { log.debug("finding User instance with property: " + propertyName + "
2015-04-30 12:24:18
2767
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人