上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 48 下一页
摘要: 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 阅读(266) 评论(0) 推荐(0)
摘要: 设计模式的一些基本原则: 设计模式的六大原则(开闭原则、里氏代换原则、依赖倒转原则、单一职责原则、接口隔离原则、迪米特法则) 单一职责原则 一个类只有一个职责,不应既做这又做那,这样的好处是: 降低了类的复杂性 提高了代码的可读性,可维护性 降低了因变更带来的风险 里氏替换原则 一个子类必须实现父类 阅读全文
posted @ 2017-08-01 23:10 PKICA 阅读(91) 评论(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 阅读(223) 评论(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 阅读(2709) 评论(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 阅读(236) 评论(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 阅读(1007) 评论(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-29 10:19 PKICA 阅读(5715) 评论(2) 推荐(0)
摘要: 注意:基本数据类型的位数与系统有关,比如64-bit系统的int型为4B C/C++中以一定区域内的位(bit)为单位来表示的数据成为位域,位域必须指明具体的数目。 位域的作用主要是节省内存资源,使数据结构更紧凑。 1. 一个位域必须存储在同一个字节中,不能跨两个字节,故位域的长度不能大于一个字节的 阅读全文
posted @ 2017-07-26 15:32 PKICA 阅读(245) 评论(0) 推荐(0)
摘要: 线程池包括:n个执行任务的线程,一个任务队列,一个管理线程 1). 预先启动一些线程,线程负责执行任务队列中的任务,当队列空时,线程挂起。 2). 调用的时候,直接往任务队列添加任务,并发信号通知线程队列非空。 3). 管理线程负责监控任务队列和系统中的线程状态,当任务队列为空,线程数目多且很多处于 阅读全文
posted @ 2017-07-19 10:50 PKICA 阅读(161) 评论(0) 推荐(0)
摘要: splint-3.1.2.src 阅读全文
posted @ 2017-07-19 09:35 PKICA 阅读(220) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 48 下一页