Notes - detailed explanation of space Configurator

Space Configurator 1. What is a space configurator Efficient management of space (space application and recycling) for each container 2. Why do I need a space configurator Various containers ----- > can store elements ----- > the bottom layer needs space new application space operator new ---->malloc Call constructor ---- comple ...

Posted by Wolf_22 on Sat, 14 May 2022 03:16:29 +0300

C + + thread class destruct deadlock problem

1, Foreword This paper will introduce a case that the main thread actively delete s the sub thread object, resulting in the main thread jamming (infinite waiting); 2, Cited examples 1. Case description 1) The implementation includes a main thread and a sub thread; 2) The main thread is responsible for starting the child thread and dest ...

Posted by asy1mpo on Fri, 13 May 2022 15:36:10 +0300

Computer algorithm design and analysis (Chapter II computer practice)

7-1) binary search Enter n values (1 < = n < = 1000), n integers in non descending order and the number x to be found. Use the binary search algorithm to find x, and output the subscript (0~n-1) where x is located and the number of comparisons. If X does not exist, output - 1 and the number of comparisons. #include <iostream> ...

Posted by YappyDog on Fri, 13 May 2022 10:12:34 +0300

Introduction to OpenCV -- image smoothing technology

About image sampling There are many ways to obtain digital images. Usually, image sampling can be used to digitize continuous images. The collection relationship between sampling points is the grid, and the infinitesimal sampling points between grids correspond to the pixels in the image. Sampling on image transformation is the process of cha ...

Posted by rimelta on Fri, 13 May 2022 03:46:16 +0300

Modular programming

Modular programming 1. Why modular programming? A: if I were Party A, I would put forward my requirements to you. After a month, you finally wrote the code I wanted. However, if you write all the functions in a c file, do you think I will ask you for later maintenance? Impossible, because I understand your whole program framework, I will main ...

Posted by benjam on Fri, 13 May 2022 03:45:45 +0300

Stick to learning for 100 days: network programming

preface Hello, I'm Xiuqi. On the one hundred and twenty-first day of learning C + +, I barely understood C + + from introduction to mastery. There are still a lot of people who haven't remembered and didn't understand. Let's look ahead first. I've been struggling for a long time today. Finally, I opened a new book to learn network programming. ...

Posted by jmelnick on Fri, 13 May 2022 00:31:56 +0300

Inline functions and references < introduction to C + + (runner's notes)

quote Concept: Instead of defining a new variable, a reference gives an alias to an existing variable. The compiler will not open up memory space for the referenced variable. It shares the same memory space with the variable it references. Syntax: Type & reference variable name (object name) = reference entity; For example, if a pe ...

Posted by 051119 on Thu, 12 May 2022 23:38:17 +0300

"War epidemic Cup" online invitational tournament -- solution to the third game

"War epidemic Cup" online invitational tournament -- solution to the third game Topic details - 1 grid of epidemic prevention and control (pintia.cn) Due to the severe situation of prevention and control, z City has started the grid sealing and control management of the whole region. The area of the city can be regarded as a rectang ...

Posted by smarlowe on Thu, 12 May 2022 23:32:49 +0300

System level programming

This class... Talks a little too much. It may be a little miscellaneous to sum up. 1, Complement the tail of process management. 2, Then process synchronization is introduced. 3, The pipeline communication between some processes is mentioned. I'll review and summarize one by one. Process management CLOSEOUT When the parent process creates a ...

Posted by lostsoul111455 on Thu, 12 May 2022 21:42:22 +0300

GAMES101 - computer graphics - Assignment 5

1 Overview In this part of the course, we will focus on rendering images using ray tracing. One of the most important operations in ray tracing is to find the intersection of light and object. Once the intersection of the light and the object is found, you can perform shading and return the pixel color. In this assignment, we need to realize tw ...

Posted by dave_c00 on Thu, 12 May 2022 20:50:29 +0300