上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页
摘要: 跳跃表(英文名:Skip List),于 1990 年 William Pugh 发明,是一个可以在有序元素中实现快速查询的数据结构,其插入,查找,删除操作的平均效率都为 。 跳跃表的整体性能可以和二叉查找树(AVL 树,红黑树等)相媲美,其在 Redis 和 LevelDB 中都有广泛的应用。 每 阅读全文
posted @ 2017-09-29 15:49 于光远 阅读(944) 评论(0) 推荐(0)
摘要: http://www.blogjava.net/fjzag/articles/317773.htmlubuntu@ubuntu-vm:/work/sv-g5-application/projects/sysmonitor/src$ cat SVPSysMonitor.cpp /*##########################################################... 阅读全文
posted @ 2017-07-11 10:19 于光远 阅读(273) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 int main() 8 { 9 int fd,size,FileLen = 0,cur = 0; 10 char s [ ]="Linux Programmer!",buffer[100]; 11 12 fd = ope... 阅读全文
posted @ 2017-05-11 16:20 于光远 阅读(544) 评论(0) 推荐(0)
摘要: 我们从小就知道道歉要说“sorry”,于是这么些年似乎道歉也没学别的说法。 可是有时候,一个“sorry”怎么足以让别人原谅,或是显示你的虔诚。 以下是更多说法! 日常求原谅温情版 My mistake. I apologize. 是我的错,我道歉。 Blame me. 这怪我。 Can you f 阅读全文
posted @ 2017-05-03 08:34 于光远 阅读(147) 评论(0) 推荐(0)
摘要: 转http://blog.csdn.net/coroutines/article/details/38067805 1. 初始化 首先调用udev_new,创建一个udev library context。udev library context采用引用记数机制,创建的context默认引用记数为1 阅读全文
posted @ 2017-04-27 08:57 于光远 阅读(7212) 评论(0) 推荐(1)
摘要: #include #include #include #include #include using namespace std; using namespace Poco; int main(){ string s("/media/ygy/YGY"); Path my_path (s); cout<< Path::current()<<endl; URI... 阅读全文
posted @ 2017-04-24 19:39 于光远 阅读(566) 评论(0) 推荐(0)
摘要: static std::string current(); Returns the current working directory. int depth() const; Returns the number of directories in the directory list. const 阅读全文
posted @ 2017-04-24 11:00 于光远 阅读(1184) 评论(0) 推荐(0)
摘要: 基于入门的环境及makefile。 void copyTo(const std::string & path)const; 将该文件复制到某个目录,将文件内容复制到指定文件。 void createDirectories(); 创建所有的目录,即使目录的父目录不存在 bool createDirec 阅读全文
posted @ 2017-04-21 14:52 于光远 阅读(3061) 评论(0) 推荐(0)
摘要: 源码按照poco。然后看README,进行安装。 ./configure make make install makefile makefile 出现错误,请注意命令行后的tab键。 阅读全文
posted @ 2017-04-21 09:15 于光远 阅读(478) 评论(0) 推荐(0)
摘要: Makefile中wildcard的介绍 在Makefile规则中,通配符会被自动展开。但在变量的定义和函数引用时,通配符将失效。这种情况下如果需要通配符有效,就需要使用函数“wildcard”,它的用法是:$(wildcard PATTERN...) 。在Makefile中,它被展开为已经存在的、 阅读全文
posted @ 2017-04-20 18:52 于光远 阅读(5139) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页