长风破浪会有时,直挂云帆济沧海

Dream Word

博客园 首页 新随笔 联系 订阅 管理
上一页 1 2 3 4 5 6 7 ··· 15 下一页

2018年8月5日 #

摘要: std::map 关联性容器 key-value存放方式 不重复key #include <iostream> #include <map> #include <string> struct Employee { Employee(){} Employee(const std::string& ws 阅读全文
posted @ 2018-08-05 18:02 长风II 阅读(189) 评论(0) 推荐(0) 编辑

2018年8月2日 #

摘要: for_each() #include <vector> #include <iostream> #include <algorithm> template<class A> inline void printElements(A& ele) { std::cout<<ele<<std::endl; 阅读全文
posted @ 2018-08-02 19:38 长风II 阅读(116) 评论(0) 推荐(0) 编辑

摘要: 直接上代码: 1:c++代码 #include <lua.hpp> #include <LuaBridge/LuaBridge.h> #include <iostream> #include <string> class A { public: void action() { std::cout<< 阅读全文
posted @ 2018-08-02 15:43 长风II 阅读(314) 评论(0) 推荐(0) 编辑

摘要: 1:安装luaBridge 2:编写程序 3:编译程序 4:编写Lua文件 5:运行 运行结果: 阅读全文
posted @ 2018-08-02 12:50 长风II 阅读(250) 评论(0) 推荐(0) 编辑

2018年8月1日 #

摘要: 1:下载安装 2:安装异常解决方案: 解决方法: 缺少libreadline-dev依赖包 centos: yum install readline-devel debian: apt-get install libreadline-dev 阅读全文
posted @ 2018-08-01 18:03 长风II 阅读(255) 评论(0) 推荐(0) 编辑

摘要: boost 日志 阅读全文
posted @ 2018-08-01 17:21 长风II 阅读(320) 评论(0) 推荐(0) 编辑

摘要: 1:下载安装包 下载自github的代码需要首先执行 $ ./autogen.sh 生成configure文件 2:编译安装 3:修改配置文件 在/etc/profile 或者用户目录 ~/.bash_profile 添加下面内容 4:如果出现找不到符号和链接错误请记得加上链接选项 -lprotob 阅读全文
posted @ 2018-08-01 10:56 长风II 阅读(560) 评论(0) 推荐(0) 编辑

2018年7月31日 #

摘要: json序列化 阅读全文
posted @ 2018-07-31 16:40 长风II 阅读(540) 评论(0) 推荐(0) 编辑

摘要: boost序列化 阅读全文
posted @ 2018-07-31 14:23 长风II 阅读(400) 评论(0) 推荐(0) 编辑

2018年7月13日 #

摘要: 1:lambda表示方法 sizeof(lambda) = 1; 等价于类 2:带参数的Lambda表达式 等价于类: lambda l(b,c); l(1); 阅读全文
posted @ 2018-07-13 17:37 长风II 阅读(179) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 15 下一页