代码改变世界

阅读排行榜

GNUPLOT 学习手记

2012-06-19 09:41 by Demote, 1101 阅读, 收藏,
摘要: 基本操作 setdatafile separator "," //设置数据文件的分隔符为comma,用于GNUPLOT绘制.csv文件 set term png //设置输出图像的格式,还有诸如jpg,eps等 set output "output.png" //设置输出到文件 set xlabel "time" //设置x坐标为'time' set ylabel "block number" //设置y坐标为'block number' set size 0.5,0.5 //长宽均 阅读全文

区间调度问题(最大利润作业调度问题)

2011-12-01 11:17 by Demote, 768 阅读, 收藏,
摘要: #include "iostream" #include "ctime" using namespace std; typedef struct { int tasksign; //任务标志 int timestart; //任务开始时间 int timeend; //任务结束时间 int wage; //暂时用不到,可以不考虑,下面讨论动态规划时用到 }task; void IntervalScheduler(task tasks[], int total); //区间内任务调度实现 void QuickSort_End(task tasks[], i 阅读全文

Git, Submin, Centos6

2012-06-20 10:02 by Demote, 763 阅读, 收藏,
摘要: By: demote摘要: 在CentOS上搭建Git服务器,通过Submin作为管理界面。程序版本:CentOS 6.0Git 1.7.1(随CentOS 6.0安装)Submin 2.0.3(http://supermind.nl/submin/)安装流程:1. CentOS的安装 选择合适的包按正常流程安装即可。2. Git安装 CentOS 6.0中已包含Git 1.7.1, 若未安装使用yum install git安装即可3. Submin安装 将安装包导入Linux中,解压后执行python setup.py install 更多安装说明参见安装包中INSTALL文件及... 阅读全文

Delphic Maxims

2012-09-14 13:12 by Demote, 669 阅读, 收藏,
摘要: (From:http://mirrorpalace.wordpress.com/delphic-maxims/)(Mostly fromthis websiteandthis livejournal post on maxim 139.)1 Follow God –Epou theo(Επου θεω)2 Obey the law -Nomo peithou(Νομω πειθου)3 Worship the Gods –Theous sebou(Θεους σεβου)4 Respect your parents -Goneis aidou(Γονεις αιδου)5 Be overcom 阅读全文

errno使用

2012-08-23 14:52 by Demote, 520 阅读, 收藏,
摘要: 部分系统函数出错时返回-1 并设置errno,打印errno方法为:printf("error: %s(errno: %d)\n",strerror(errno),errno); 阅读全文
1 2 3 4 5 ··· 8 下一页