摘要: 0. std::move is used to indicate that an object may be "removed from", allowing the efficient transfer of resources from t to another object. 1. Examp 阅读全文
posted @ 2020-01-21 00:42 心怀阳光 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 0. 1. std::shared_ptr is a smart pointer that retains shared ownership of an object through a pointer. Several shared_ptr objects may own the same obj 阅读全文
posted @ 2020-01-20 23:42 心怀阳光 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 0. Problem There is no memory leak of the following code, but there are problems. void memory_leak(){ ClassA *ptr = new ClassA(); /* if return here, t 阅读全文
posted @ 2020-01-20 22:15 心怀阳光 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 0. A function pointer is a variable that stores the address of a function that will be called later through that function pointer. Function pointers a 阅读全文
posted @ 2020-01-19 23:24 心怀阳光 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 1. the list is a class which provides methods like sort(), append(), ... list.sort(*, key=None, reverse=None) key specifies a function of one argument 阅读全文
posted @ 2020-01-18 00:26 心怀阳光 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 1. What is CMake 2. How to use CMake command line 3. A simple example to start (My system is Ubuntu 16.04 LTS; g++ 5.4.0; cmake 3.5.1) Two files are i 阅读全文
posted @ 2020-01-13 07:58 心怀阳光 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1. What is a multithread Multithreading allows our computer to run two or more programs concurrently. Multithreading is different from multiprogram. 2 阅读全文
posted @ 2020-01-13 03:42 心怀阳光 阅读(354) 评论(0) 推荐(0) 编辑
摘要: The original video is from Magic Ingrredients in Youtube. Here is the link: https://www.youtube.com/watch?v=nYQ5uc6plCs&t=58s 1. Materials: Egg x 5; o 阅读全文
posted @ 2020-01-05 11:50 心怀阳光 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1. What is Conda Conda is an open source package management system and environment management system that runs on Windows, macOS, and Linux. Conda qui 阅读全文
posted @ 2020-01-02 09:48 心怀阳光 阅读(684) 评论(0) 推荐(0) 编辑
摘要: / forward slash \\ double slashes \ back slash \ menas an escape character in some programming languages like C++, C# 1. In Windows OS, the file path 阅读全文
posted @ 2020-01-01 10:20 心怀阳光 阅读(127) 评论(0) 推荐(0) 编辑