摘要: Chaper 2 Variables and Basic Types Section 2.4 Const Qulifier Initialization and const Initialization and References to const Pointers and const Top-l 阅读全文
posted @ 2022-02-03 15:11 Dy2MoRaw 阅读(54) 评论(0) 推荐(0)
摘要: Q1: 如何解决虚拟机挂起后,重新登录Ubuntu系统时间无法自动更新的问题. [Linux] [220708] A: 安装ntpdate,并输入以下命令,可以解决每次开机自动更新时间问题. [S] sudo apt install ntpdate echo "natpdate edu.ntp.or 阅读全文
posted @ 2022-07-15 19:05 Dy2MoRaw 阅读(83) 评论(0) 推荐(0)
摘要: ![](https://img2022.cnblogs.com/blog/2743102/202205/2743102-20220521221859394-1060130406.png) 阅读全文
posted @ 2022-05-21 22:19 Dy2MoRaw 阅读(12) 评论(0) 推荐(0)
摘要: ![](https://img2022.cnblogs.com/blog/2743102/202205/2743102-20220521134738492-304019055.png) 阅读全文
posted @ 2022-05-21 13:50 Dy2MoRaw 阅读(16) 评论(0) 推荐(0)
摘要: N Namespace unnamed namespace Unnamed namespace in C++ primer (P. 791) 阅读全文
posted @ 2022-03-29 17:07 Dy2MoRaw 阅读(8) 评论(0) 推荐(0)
摘要: Concepts Variables defined in an unnanmed namespace have static lifetime. Unlike other namespaces, an unnamed namespace is local to a particular file 阅读全文
posted @ 2022-03-29 17:06 Dy2MoRaw 阅读(34) 评论(0) 推荐(0)
摘要: 7.1 Defining Abstract Data Type The fundamental ideas behind classes are data struaction and encapsulation. Key Concept: Different Kind of Programming 阅读全文
posted @ 2022-03-10 16:17 Dy2MoRaw 阅读(49) 评论(0) 推荐(0)
摘要: 什么是并查集 1.将n个不重复的元素( distinct elements ), 分配到几个不相交集合( disjoint sets )的应用。 换句话说,一个不相交的集合(disjoint sets)是一组集合,其中任何项都不能出现在一个以上的集合中。 ( A disjoint set is a 阅读全文
posted @ 2022-02-17 10:55 Dy2MoRaw 阅读(387) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2022-02-12 06:50 Dy2MoRaw 阅读(76) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2022-02-08 21:51 Dy2MoRaw 阅读(66) 评论(0) 推荐(0)
摘要: Using new to Dynamically allocate and initialize objects (new) 1.Initialization with parentheses and curly braces. int *pi = new int(1024); string *ps 阅读全文
posted @ 2022-02-03 15:11 Dy2MoRaw 阅读(59) 评论(0) 推荐(0)