上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 48 下一页
摘要: C++中的空类,编译器默认可以产生哪些成员函数 C++中创建一个空类:class Empty {};默认会生成4个函数,其函数的原型如下: public: Empty() { ... } Empty(const Empty& rhs) { ... } ~Empty() { ... } Empty& 阅读全文
posted @ 2017-03-06 20:29 PKICA 阅读(959) 评论(0) 推荐(0)
摘要: 详细参考如下: Dangling pointer(悬垂指针、迷途指针)和 Wild pointer(野指针) 迷途指针经常出现在混杂使用malloc() 和 free() 库调用: 当指针指向的内存释放了,这时该指针就是迷途的。和前面的例子一样,一个避免这个错误的方法是在释放它的引用后将该指针的值重 阅读全文
posted @ 2017-02-26 20:51 PKICA 阅读(2698) 评论(0) 推荐(0)
摘要: WHY C++ ? C++ 阅读全文
posted @ 2017-02-26 20:22 PKICA 阅读(177) 评论(0) 推荐(0)
摘要: Return iterator to lower bound Return iterator to upper bound 阅读全文
posted @ 2017-02-21 16:14 PKICA 阅读(272) 评论(0) 推荐(0)
摘要: Encryption Decryption 阅读全文
posted @ 2017-01-03 20:31 PKICA 阅读(608) 评论(0) 推荐(0)
摘要: 85. Maximal Rectangle Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. For exampl 阅读全文
posted @ 2016-12-12 11:29 PKICA 阅读(131) 评论(0) 推荐(0)
摘要: http://www.cplusplus.com/reference/algorithm/for_each/ Output: myvector contains: 10 20 30 myvector contains: 10 20 30 阅读全文
posted @ 2016-11-19 17:09 PKICA 阅读(242) 评论(0) 推荐(0)
摘要: 二叉树最低公共祖先节点 acmblog If one key is present and other is absent, then it returns the present key as LCA (Ideally should have returned NULL).We can exten 阅读全文
posted @ 2016-11-14 21:27 PKICA 阅读(202) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- # 在定义或者调用参数时,参数的几种传递方式可以混合。基本原则是,先位置,再关键字,再包裹位置,再包裹关键字。 # -------------------------------------------------------------------- # # 位置参数 def func(a, b,... 阅读全文
posted @ 2016-11-14 09:07 PKICA 阅读(450) 评论(0) 推荐(0)
摘要: mro即method resolution order,主要用于在多继承时判断调的属性的路径(来自于哪个类)。 http://blog.csdn.net/imzoer/article/details/8737642 你真的理解Python中MRO算法吗? API: 测试代码: 输出: enter C 阅读全文
posted @ 2016-11-13 22:07 PKICA 阅读(366) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 48 下一页