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

CMake multi main() entrance project construction (brush topic direction)

In ACM algorithm competition / LeetCode using C + + to brush questions and other scenarios, usually: A lot of C + + source code needs to be maintained Multiple main function entries are required to facilitate test execution Some self written public function class libraries (such as debug output vector, etc.) are referenced in multiple files T ...

Posted by DarkendSoul on Thu, 12 May 2022 18:47:09 +0300

Multithreading 04: mutexes and deadlocks

📕 Mutex and deadlock 1, Data sharing issues First, let's look at the execution order of multithreading: void TextThread() { cout << "I am a thread:" << this_thread::get_id() << endl; //In thread operation code cout << "thread " << this_thread::get_id() << "End of operation" << endl; } int main() { ...

Posted by rd321 on Thu, 12 May 2022 09:14:46 +0300

Detailed explanation of secondary pointer function

Concept: In the following pointing relationship of A to B and B to C: First, C is "a piece of content". For example, you allocate a piece of memory with malloc or new, and then insert "a piece of content", that is C. The starting address of C is 0x00000008. B is a pointer variable in which the address of C is stored, but B a ...

Posted by cturner on Thu, 12 May 2022 04:23:03 +0300

UE4C + +: camera

10/14/2020 video camera Camera represents the player's perspective; How players see the world. Therefore, the camera is only related to human controlled players. The PlayerController specifies the camera class and instantiates the Camera Actor (used to calculate the position and direction from which the player looks at the world). P ...

Posted by alconebay on Wed, 11 May 2022 15:49:04 +0300