3 personal training summary

Red wine competition Title A: Title Link: Click here to transfer Meaning: Given n non decreasing numbers, you are required to change a bit of a number so that it does not form a non decreasing sequence. If Impossible cannot be output Idea: For simulation, enumerating two adjacent numbers is still legal if the first bit of the previous number ...

Posted by FredAt on Fri, 31 Dec 2021 14:14:47 +0100

My roommate learned the hash table only on the last day of 2021

Hash concept A one-to-one mapping relationship can be established between the storage location of an element and its key through a function (hashFunc), so the element can be found quickly during search The conversion function used in the hash method is called hash (hash) function, and the structure constructed is called hash table (o ...

Posted by daucoin on Fri, 31 Dec 2021 13:16:42 +0100

C++ Primer Plus learning notes

Chapter VIII Function exploration 1. C + + inline function After the function is created normally, when the program calls the function, the program jumps to the function address. When using inline functions, the compiler will directly replace the function call with the function code during compilation, which saves the time for the program to ...

Posted by sirfartalot on Fri, 31 Dec 2021 12:57:32 +0100

[about CMake, CMakeLists.txt] related knowledge and ORB_SLAM3-ROS-CMakeLists notes

preface Fill the abyss of your knowledge. Everything is a variable. What the CPU needs to access memory is the address, not the variable name and function name! Variable names and function names are just mnemonics of addresses. When the source files are compiled and linked into executable programs, they will be replaced with addresses. ...

Posted by tuuga on Fri, 31 Dec 2021 00:33:31 +0100

Simple thread pool

outline According to Anthony Williams's "C + + concurrent programming practice", One worker thread operates at the head of the task queue, while other worker threads operate at the end of the task queue. This actually means that the queue is a last in, first out stack for owning threads. The tasks recently put in the queue will be ta ...

Posted by QWERTYtech on Thu, 30 Dec 2021 22:19:57 +0100

STL beginner -- something about string class

What is STL? STL refers to the Standard Template Library. It contains a large number of template classes and template functions. It is a collection of basic templates provided by C + +. It is used to complete functions such as input / output and mathematical calculation. Fundamentally, STL is a collection of containers, algorithms and other co ...

Posted by isam4m on Thu, 30 Dec 2021 21:54:03 +0100

Singleton mode (C + + implementation of lazy)

Singleton pattern is one of design patterns. This paper records and summarizes the definition of singleton pattern and several lazy ways to implement singleton pattern in C + +. reference resources Summary and analysis of C + + single case mode What is singleton mode Single case The characteristic of (Singleton) mode is that this class ...

Posted by twmcmahan on Thu, 30 Dec 2021 20:02:29 +0100

Niuke beginner monthly competition 34

Niuke Xiaobai monthly race 34 Question A (dd love science 1.0) Title Link Title Description Recently, the great scientist dd is studying transgenic Chinese cabbage. The gene sequence of Chinese cabbage is composed of a string of capital English letters. After rigorous reasoning, dd found that only when the gene sequence of Chinese cabbage i ...

Posted by mohson on Thu, 30 Dec 2021 07:22:46 +0100

[UE4 C + +] realize character attack

Effect display Using animated montage to realize character attack After pressing the left key, the character will attack: Random output attack animation. Create animated Montage Insert our animation into it: Right click and click the new montage section: Click Preview in the Sections section to divide it into multiple Sections: Pull ...

Posted by prueba123a on Thu, 30 Dec 2021 02:10:27 +0100

Intelligent gate system of parking lot (qt)

demand This project is a three-level project at the end of the term, which was completed by my roommate and I in a team. Among them, I am responsible for Baidu identification, camera acquisition, time display and code integration Design The functions of the project include: the camera obtains the license plate number, screenshots and a ...

Posted by Ekate on Thu, 30 Dec 2021 01:36:53 +0100