上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页
摘要: 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 于光远 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 我们从小就知道道歉要说“sorry”,于是这么些年似乎道歉也没学别的说法。 可是有时候,一个“sorry”怎么足以让别人原谅,或是显示你的虔诚。 以下是更多说法! 日常求原谅温情版 My mistake. I apologize. 是我的错,我道歉。 Blame me. 这怪我。 Can you f 阅读全文
posted @ 2017-05-03 08:34 于光远 阅读(132) 评论(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 于光远 阅读(6633) 评论(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 于光远 阅读(521) 评论(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 于光远 阅读(1119) 评论(0) 推荐(0) 编辑
摘要: 基于入门的环境及makefile。 void copyTo(const std::string & path)const; 将该文件复制到某个目录,将文件内容复制到指定文件。 void createDirectories(); 创建所有的目录,即使目录的父目录不存在 bool createDirec 阅读全文
posted @ 2017-04-21 14:52 于光远 阅读(2956) 评论(0) 推荐(0) 编辑
摘要: 源码按照poco。然后看README,进行安装。 ./configure make make install makefile makefile 出现错误,请注意命令行后的tab键。 阅读全文
posted @ 2017-04-21 09:15 于光远 阅读(460) 评论(0) 推荐(0) 编辑
摘要: Makefile中wildcard的介绍 在Makefile规则中,通配符会被自动展开。但在变量的定义和函数引用时,通配符将失效。这种情况下如果需要通配符有效,就需要使用函数“wildcard”,它的用法是:$(wildcard PATTERN...) 。在Makefile中,它被展开为已经存在的、 阅读全文
posted @ 2017-04-20 18:52 于光远 阅读(4957) 评论(0) 推荐(0) 编辑
摘要: cgroups 命令集 最后介绍,功能最为强大的控制组(cgroups)的用法。cgroups 是 Linux 内核提供的一种机制,利用它可以指定一组进程的资源分配。 具体来说,使用 cgroups,用户能够限定一组进程的 cpu 占用率、系统内存消耗、网络带宽,以及这几种资源的组合。 对比nice 阅读全文
posted @ 2017-04-18 14:56 于光远 阅读(1814) 评论(0) 推荐(0) 编辑
摘要: class A{public: typedef int (*func)(int); operator func();};int ff(int a){ return a;}A::operator func(){ return ff;}int main () { cout<< A::func(9)<<e 阅读全文
posted @ 2017-04-07 19:01 于光远 阅读(316) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页