摘要: 1 /** This represent a connection : we have a fixed number of them 2 * fetchOpen links them with servers 3 * fetchPipe reads those which are linked 4... 阅读全文
posted @ 2015-06-06 09:59 湛雷冲 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 顺序容器array(C++11)vectorstringdequeforward_list(C++11)list容器适配器stackqueuepriority_queue关联容器setmultisetmapmultimap无序关联容器(C++11)unordered_setunordered_mul... 阅读全文
posted @ 2015-06-04 16:04 湛雷冲 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1,传值与传引用 传引用:修改实际作用与变量,“别名”,不需要拷贝; const: const int var=1;常量,不能修改,顶层。 const int *p;指向常量的指针,可指向变量/常量,但不能通过p修改。 int const *p;常量指针,必须初始化... 阅读全文
posted @ 2015-06-04 15:54 湛雷冲 阅读(174) 评论(0) 推荐(0) 编辑
摘要: #include#includeint select(int maxfdp1,fd_set *readset,fd_set *writeset,fd_set *exceptset,const timeval *timeout);*timeout: 1,NULL,永远等待;2,等待固定时间(tv_s... 阅读全文
posted @ 2015-06-04 15:27 湛雷冲 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 作者: liigo原文链接:http://blog.csdn.net/liigo/archive/2006/01/17/582231.aspx日期: 2006年1月16日本文写给主要工作在Windows操作系统下而又需要开发一些跨平台软件的程序员朋友,以及程序爱好者。GDB是一个由GNU开源组织发布... 阅读全文
posted @ 2015-06-04 15:01 湛雷冲 阅读(162) 评论(0) 推荐(0) 编辑
摘要: fedora20,安装yum install ncurses-devel编译时:-lncurses头文件:#include参考:man ncurses \linux程序设计一,屏幕1, 以initscr()开始,以endwin();结束 WINDOW *initscr(void); //初始化 ... 阅读全文
posted @ 2014-11-25 11:53 湛雷冲 阅读(1560) 评论(0) 推荐(0) 编辑