![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小常识
文章平均质量分 66
Dstray
这个作者很懒,什么都没留下…
展开
-
随机数:为什么不随机
看到一个问题,为什么如下代码在每次循环时重新设置随机种子打印出来的数都一样? #include #include #include void test_rand(void) //随机测试 { for(int i = 0; i < 100; i++) { srand((unsigned)time(NULL)); //设置种子 printf("%10d\n", rand());原创 2014-05-26 10:44:01 · 702 阅读 · 0 评论 -
【Git Usage】error: RPC failed; result=22, HTTP code = 411
使用git提交比较大的文件的时候可能会出现这个错误 error: RPC failed; result=22, HTTP code = 411 fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly Everything up-to-date转载 2014-10-22 13:20:22 · 447 阅读 · 0 评论 -
ubuntu 14.04 手動添加分辨率選項
新裝的Ubuntu14.04,發現設置裏支持的分辨率只有1024x768和800x600兩個選項,顯然無法滿足需要,解決方法如下: 1. xrand命令查看當前配置: $ xrandr Screen 0: minimum 320 x 200, current 1024 x 768, maximum 16384 x 16384 DisplayPort-0 disconnected (norm转载 2016-03-08 09:43:14 · 604 阅读 · 0 评论