上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 39 下一页
摘要: 动态数组初始化: 对于内置数据类型元素的数组,必须使用()来显示指定程序执行初始化操作,否则程序不执行初始化操作:int *pia = new int[10]; // 每个元素都没有初始化int *pia2 = new int[10] (); // 每个元素初始化为0类类型元素的数组,则无论是否使用 阅读全文
posted @ 2017-09-25 14:19 PKICA 阅读(23263) 评论(0) 推荐(1) 编辑
摘要: 安装: 生成静态库 1 生成静态库: 2 第一步:生成目标文件: 3 g++ -g -Wall -c json_reader.cpp json_value.cpp json_writer.cpp -I. -I../../include -lpthread 4 5 会生成三个*.o文件 6 json_ 阅读全文
posted @ 2017-09-13 08:59 PKICA 阅读(2275) 评论(0) 推荐(1) 编辑
摘要: 71. Simplify Path 1 class Solution { 2 public: 3 string simplifyPath(string path) { 4 deque<string> qs; 5 string result; 6 int plen = path.size(); 7 s 阅读全文
posted @ 2017-09-11 07:46 PKICA 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 本文摘自 gtest简介及简单使用 ,在此感谢作者的分享. 具体使用教程 _________________________________________________________________________________________________________________ 阅读全文
posted @ 2017-09-09 09:28 PKICA 阅读(4928) 评论(0) 推荐(0) 编辑
摘要: Difficulty:Medium Total Accepted:129.6K Total Submissions:667.5K Contributor:LeetCode 1 class Solution { 2 public: 3 bool cmpwrd(string str1, string s 阅读全文
posted @ 2017-08-25 21:18 PKICA 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 设计模式的一些基本原则: 设计模式的六大原则(开闭原则、里氏代换原则、依赖倒转原则、单一职责原则、接口隔离原则、迪米特法则) 单一职责原则 一个类只有一个职责,不应既做这又做那,这样的好处是: 降低了类的复杂性 提高了代码的可读性,可维护性 降低了因变更带来的风险 里氏替换原则 一个子类必须实现父类 阅读全文
posted @ 2017-08-01 23:10 PKICA 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 class Base{ 8 public: 9 int data; 10 Base(int y):data(y){} 11 }; 12 Base *pt(int x){ 13... 阅读全文
posted @ 2017-07-31 09:12 PKICA 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Q: method: Solution “vmmon” is the virtual machine monitor kernel module. You can rebuid it by running: sudo vmware-modconfig --console --install-all 阅读全文
posted @ 2017-07-30 18:50 PKICA 阅读(2676) 评论(0) 推荐(0) 编辑
摘要: ubuntu给手机建wifi http://ubuntuhandbook.org/index.php/2014/06/share-internet-with-android-ubuntu-1404/ evil: http://www.cnblogs.com/tiankonguse/p/3780323 阅读全文
posted @ 2017-07-29 19:21 PKICA 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1. 即使libmysqlcppconn.so.7和与之相关存在,也报这个错误。 解决方法:临时添加LD_LIBRARY_PATH, 假使 libmysqlcppconn.so在/usr/local/lib目录下。 $export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/ 阅读全文
posted @ 2017-07-29 16:29 PKICA 阅读(920) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 39 下一页