- 博客(4)
- 收藏
- 关注
转载 ubuntu 14.04 手動添加分辨率選項
新裝的Ubuntu14.04,發現設置裏支持的分辨率只有1024x768和800x600兩個選項,顯然無法滿足需要,解決方法如下:1. xrand命令查看當前配置:$ xrandrScreen 0: minimum 320 x 200, current 1024 x 768, maximum 16384 x 16384DisplayPort-0 disconnected (norm
2016-03-08 09:43:14
667
转载 【Git Usage】error: RPC failed; result=22, HTTP code = 411
使用git提交比较大的文件的时候可能会出现这个错误error: RPC failed; result=22, HTTP code = 411fatal: The remote end hung up unexpectedlyfatal: The remote end hung up unexpectedlyEverything up-to-date
2014-10-22 13:20:22
479
原创 随机数:为什么不随机
看到一个问题,为什么如下代码在每次循环时重新设置随机种子打印出来的数都一样?#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
754
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人