上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 39 下一页
摘要: 右值引用是解决语义支持提出的 这篇文章要介绍的内容和标题一致,关于C++ 11中的这几个特性网上介绍的文章很多,看了一些之后想把几个比较关键的点总结记录一下,文章比较长。给出了很多代码示例,都是编译运行测试过的,希望能用这些帮助理解C++ 11中这些比较重要的特性。 关于左值和右值的定义 左值和右值 阅读全文
posted @ 2017-03-21 16:05 PKICA 阅读(757) 评论(2) 推荐(0) 编辑
摘要: 对于intel的AES-NI新指令集,需要i5处理器及以上的相关硬件支持.在编译时,可能会出现 /usr/lib/gcc/x86_64-linux-gnu/4.8/include/wmmintrin.h:34:3: error: #error "AES/PCLMUL instructions not 阅读全文
posted @ 2017-03-18 10:52 PKICA 阅读(6978) 评论(0) 推荐(0) 编辑
摘要: 130.Add to List 130. Surrounded Regions Difficulty:Medium Total Accepted:85K Total Submissions:461.3K Contributor:LeetCode 1 /* 2 60 / 60 test cases p 阅读全文
posted @ 2017-03-16 10:07 PKICA 阅读(201) 评论(0) 推荐(0) 编辑
摘要: C++中的空类,编译器默认可以产生哪些成员函数 C++中创建一个空类:class Empty {};默认会生成4个函数,其函数的原型如下: public: Empty() { ... } Empty(const Empty& rhs) { ... } ~Empty() { ... } Empty& 阅读全文
posted @ 2017-03-06 20:29 PKICA 阅读(934) 评论(0) 推荐(0) 编辑
摘要: 详细参考如下: Dangling pointer(悬垂指针、迷途指针)和 Wild pointer(野指针) 迷途指针经常出现在混杂使用malloc() 和 free() 库调用: 当指针指向的内存释放了,这时该指针就是迷途的。和前面的例子一样,一个避免这个错误的方法是在释放它的引用后将该指针的值重 阅读全文
posted @ 2017-02-26 20:51 PKICA 阅读(2654) 评论(0) 推荐(0) 编辑
摘要: WHY C++ ? C++ 阅读全文
posted @ 2017-02-26 20:22 PKICA 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Return iterator to lower bound Return iterator to upper bound 阅读全文
posted @ 2017-02-21 16:14 PKICA 阅读(264) 评论(0) 推荐(0) 编辑
摘要: Encryption Decryption 阅读全文
posted @ 2017-01-03 20:31 PKICA 阅读(595) 评论(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 阅读(120) 评论(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 阅读(224) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 39 下一页