摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
1. What is a multithread Multithreading allows our computer to run two or more programs concurrently. Multithreading is different from multiprogram. 2 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
/ forward slash \\ double slashes \ back slash \ menas an escape character in some programming languages like C++, C# 1. In Windows OS, the file path 阅读全文