
Love_C++
文章平均质量分 80
OFShare
这个作者很懒,什么都没留下…
展开
-
sort的用法
std::sort default (1) template void sort (RandomAccessIterator first, RandomAccessIterator last); custom (2) template void sort (RandomAccessIterator first, RandomAcce原创 2017-06-16 17:16:47 · 362 阅读 · 0 评论 -
priority_queue的用法
class template std::priority_queue template , class Compare = less > class priority_queue; Priority queue Priority queues are a type of container adaptors, specifically designed such原创 2017-06-16 17:25:43 · 345 阅读 · 0 评论 -
C++面试中string类的一种正确简明的写法
//转载地址http://blog.youkuaiyun.com/solstice/article/details/12613275//配套代码https://github.com/chenshuo/recipes/blob/master/string/StringTrivial.h C++ 的一个常见面试题是让你实现一个 String 类,限于时间,不可能要求具备 std::string 的功能,但至少要转载 2017-05-21 13:45:29 · 317 阅读 · 0 评论 -
namespace in c++用法详解
//原文https://www.tutorialspoint.com/cplusplus/pdf/cpp_namespaces.pdf Consider a situation, when we have two persons with the same name, Zara, in the same class. Whenever we need to differentiate the转载 2017-05-21 22:55:42 · 607 阅读 · 0 评论