02 2017 档案
bresenham 算法生成直线
摘要:struct Point{ Point() { posx = 0; posy = 0; } Point(int x, int y) { posx = x; posy = y; } int posx; int posy;}; void bresenham(int x1, int y1, int x2, 阅读全文
posted @ 2017-02-27 19:15 c碰 阅读(635) 评论(0) 推荐(0)
Linux修改Shell命令提示符及颜色
摘要://转自http://www.linuxidc.com/Linux/2014-10/108195.htm Linux修改Shell命令提示符及颜色 1. Linux登录过程中加载配置文件顺序: /etc/profile → /etc/profile.d/*.sh → ~/.bash_profile 阅读全文
posted @ 2017-02-18 11:14 c碰 阅读(1847) 评论(0) 推荐(0)
nobup 与 后台运行命令
摘要:1. Linux进程状态:R (TASK_RUNNING),可执行状态&运行状态(在run_queue队列里的状态) 2. Linux进程状态:S (TASK_INTERRUPTIBLE),可中断的睡眠状态, 可处理signal 3. Linux进程状态:D (TASK_UNINTERRUPTIBL 阅读全文
posted @ 2017-02-17 22:13 c碰 阅读(1245) 评论(0) 推荐(0)