02 2022 档案
摘要:什么是并查集 1.将n个不重复的元素( distinct elements ), 分配到几个不相交集合( disjoint sets )的应用。 换句话说,一个不相交的集合(disjoint sets)是一组集合,其中任何项都不能出现在一个以上的集合中。 ( A disjoint set is a
阅读全文
摘要:Initialization and const 1.Because we can't change the value of a const obeject after we create it, it must be initialized. We may use only those oper
阅读全文
摘要:Initialization 1.A default initialized smart pointer holds a null pointer. shared_ptr<vector<string>> p; // shared_ptr that can point at a vector of s
阅读全文
摘要:Using new to Dynamically allocate and initialize objects (new) 1.Initialization with parentheses and curly braces. int *pi = new int(1024); string *ps
阅读全文
摘要:Chaper 2 Variables and Basic Types Section 2.4 Const Qulifier Initialization and const Initialization and References to const Pointers and const Top-l
阅读全文
浙公网安备 33010602011771号