X
文章平均质量分 57
Winter_chill
这个作者很懒,什么都没留下…
展开
-
让cpu稳定在66%
#include #include #include #include int main(){int time_start;int fulltime = 5000;//总时间int runtime = 50;//运行时间while(1){time_start = clock();while((clock()-time_start)usleep(原创 2017-12-01 16:04:47 · 273 阅读 · 0 评论 -
一些好的网站记录(PART 1)
a原创 2017-11-30 18:31:47 · 2936 阅读 · 0 评论 -
一些好的网站记录(PART 9)
a原创 2017-12-01 16:00:07 · 492 阅读 · 0 评论 -
一些好的网站记录(PART 8)
a原创 2017-12-01 15:46:49 · 481 阅读 · 0 评论 -
一些好的网站记录(PART 7)
[算法][C/C++][OS]https://stackoverflow.com/questions/26752286/disk-stats-in-proc-or-syshttps://unix.stackexchange.com/questions/222735/how-to-get-hard-disk-information-from-proc-and-or-s原创 2017-12-01 15:26:54 · 497 阅读 · 0 评论 -
一些好的网站记录(PART 6)
a原创 2017-12-01 11:21:57 · 196 阅读 · 0 评论 -
一些好的网站记录(PART 2)
[算法][C/C++]https://segmentfault.com/a/1190000007606710https://segmentfault.com/a/1190000007227165[OS]http://blog.csdn.net/xingfujie/article/details/7654805http://blog.c原创 2017-12-01 09:49:34 · 318 阅读 · 0 评论 -
一些好的网站记录(PART 5 )
[算法][C/C++]http://www.cnblogs.com/pmars/archive/2012/10/24/2736831.htmlhttp://www.cnblogs.com/leijiangtao/p/4052005.htmlhttp://www.cnblogs.com/maowang1991/p/3656555.htmlhttp://www.cnblog原创 2017-12-01 14:57:37 · 237 阅读 · 0 评论 -
一些好的网站记录(PART 4)
[算法][C/C++][OS][Performance&TRACE][Systemtap]http://openresty.org/en/build-systemtap.htmlhttp://bbs.chinaunix.net/thread-4117699-1-1.htmlhttp://原创 2017-12-01 14:47:20 · 712 阅读 · 0 评论 -
c_str使用规范
假设我要使用一个别人写好的f(char *)函数,但是我只有一个string对象 string s="hello"因为f的参数类型是char*, 而s的类型是string,那该怎么办呢?好在string类提供了一个c_str函数,能够返回底层的char*指针所以我们打算这样用:f(s.c_str())但是这是错误的,因为c_str返回的是一个const char * 类型,而f的参原创 2017-12-01 16:06:04 · 233 阅读 · 0 评论