- 博客(7)
- 收藏
- 关注
原创 apache.commons.io学习笔记
最近在学commons.io,记录如下: commons.io包含几个package: 让顺序来,先学习第一个包。 FileSystemUtils类提供一些静态的工具方法,例如查看磁盘的freespace。实现是和操作系统os相关,例如window下通过进程执行命令行下dir操作,通过截取最后的数字部分返回得到。 FilenameUtils是和文件名相关的类,有normal
2014-07-11 15:48:19 442
转载 C++ sizeof 使用规则及陷阱分析
1、什么是sizeof 首先看一下sizeof在msdn上的定义: The sizeof keyword gives the amount of storage, in bytes, associated with a variable or a type (including aggregate types). This keyword returns a value o
2014-04-20 21:59:59 422
原创 LeetCode Two Sum
Two Sum Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the t
2014-04-15 13:05:27 474
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人