1 . 文件管理
1.1 标C文件处理和UC文件处理函数的比较:
标C文件处理函数比UC的文件处理函数速度快,因为标C内部独立输入输出缓冲区,
会积累一定数量之后再写入文件,因此读写效率比较高
使用time命令可以获取进程的运行时间
time b.out
real 0m0.081s =>真实时间
user =>
用户态时间
sys =>
内核时间
1.2 文...
分类:
其他好文 时间:
2015-06-09 06:16:14
阅读次数:
97
Given an array of integers and an integerk, find out whether there there are two distinct indicesiandjin the array such thatnums[i] = nums[j]and the d...
分类:
其他好文 时间:
2015-06-09 00:48:47
阅读次数:
105
1 package test; 2 3 4 public class Main 5 { 6 public static void main(String[] args) 7 { 8 // 定义一些变量,用来格式化输出。 9 ...
分类:
编程语言 时间:
2015-06-09 00:43:58
阅读次数:
184
jQuery在使用grunt,bootstrap在使用grunt,百度UEditor在使用grunt,你没有理由不学、不用!
1. 前言
各位web前端开发人员,如果你现在还不知道grunt或者听说过、但是不会熟练使用grunt,那你就真的真的真的out了(三个“真的”重复,表示重点)。至于grunt的作用,这里不详细说了,总之你如果做web前端开发,你一定要用grunt。还有一点,它...
分类:
Web程序 时间:
2015-06-08 23:28:39
阅读次数:
495
如果你还不知道中关村创业大街
如果你不知道孵化器
OUT!
一个互联网创业团队的编年史,值得你花15分钟阅读。...
分类:
其他好文 时间:
2015-06-08 23:24:50
阅读次数:
349
故障:晚上大概7点钟左右,收到播放中心投诉,说视频播放很慢,加载很久不出来。一开始,哥以为是tomcat服务又挂了。所以到tomcat服务器上查看下catalina.out输出日志。却没发现任务错误信息。分析:想了想,视频加载慢,会不会是数据库问题呢?果断上mysql数据库(从库)看下top..
分类:
数据库 时间:
2015-06-08 21:45:47
阅读次数:
154
1 public class TestOutOfBound { 2 public static void main(String[] args) { 3 4 System.out.println(Integer.MAX_VALUE-(-Integer.MAX_VALUE)); //内存溢出 ...
分类:
其他好文 时间:
2015-06-08 21:18:06
阅读次数:
266
String:字符串常量StringBuffer:字符串变量StringBuilder:字符串变量对于这句话的理解你可能会产生这样一个疑问 ,比如这段代码: 1Strings="abcd";2s=s+1;3System.out.print(s); //abcd1我们明明就是改变了String型的变量...
分类:
其他好文 时间:
2015-06-08 18:51:56
阅读次数:
176
今天在使用BufferedReader的时候,出现了一个奇怪的问题有时候换行的时候,行首会少一个字符开始的代码是这样写的while( br.read()!=-1 ){ String str = br.readLine(); System.out.println(str); }问题点...
分类:
其他好文 时间:
2015-06-08 17:05:24
阅读次数:
93