Learning Win32 multithreaded programming (Chapter 3)
Run and wait
In this chapter, we revisited the bad results of busy loops and learned how to use Windows NT's performance monitor to catch problems. We also learned about the so-called "excited state objects" and learned how to wait for one or more such objects in a worker thread or a GUI thread. Finally, we saw how to rebuild a ma ...
Added by muinej on Thu, 06 Jan 2022 14:22:50 +0200
General purpose oriented and special purpose oriented
More general than special
Inheritance constructor
Subclasses automatically get the member variables and interfaces of the parent class
Interfaces refer to virtual functions and pure virtual functions
The implication is that a non virtual function of a parent class cannot be inherited by a child class
Constructors also follow this rule. If ...
Added by MysticalCodex on Thu, 06 Jan 2022 13:54:02 +0200
Detailed explanation of string Hash 2D Hash
String hash method
character string
h
a
s
h
hash
hash is to map a string into a nonnegative integer.
(the probability of simultaneous collision is very low)
Design a large prime number
...
Added by dominant on Thu, 06 Jan 2022 10:29:05 +0200
Standard two body model implemented with CUDA Thrust
Standard two body model implemented with CUDA Thrust
The space target orbit parallel computing technology based on CUDA has four sections, of which the contents of the first, second and third sections are as follows
1. Orbit calculation requirements and mission analysis of space target based on CUDA
2 Calculation of spatial coordinate syste ...
Added by mclamais on Thu, 06 Jan 2022 02:22:34 +0200
Luo Gu: P6687 on how to play with Excel tables [judgment questions (whether there is a solution) + finding the number of pairs in reverse order]
Valley: matrix rotation
It can be found by observation that:
For such a two column table, a 180 ° rotation of a 2x2 square is equivalent to the exchange of upper left and lower right, lower left and upper right
And this exchange won't change anything? Two numbers in any column will not be changed!
But it will change the positional rela ...
Added by littledragon on Thu, 06 Jan 2022 01:08:18 +0200
C + + nesting and recursion (Chapter 3)
catalogue
Nested calls to functions
Nested Call
Example 3-7 enter two integers and sum the squares
Recursive call of function
definition
Example: calculate n!
For example, calculate 4! The two phases of the project:
Example 3-8 find n!
Source code:
Operation results:
Example 3-9 calculate the number of different combinations of k pe ...
Added by marco75 on Wed, 05 Jan 2022 23:42:04 +0200
PAT class B 1003 I want to pass
Topic information
"Correct answer" is the most gratifying reply given by the automatic question judgment system. This question belongs to PAT's "correct answer" distribution - as long as the read string meets the following conditions, the system will output "correct answer", otherwise it will output "wrong an ...
Added by Jeremysr on Wed, 05 Jan 2022 20:16:40 +0200
Linux GUI open source library GuiLite
This article is reproduced from: https://zhuanlan.zhihu.com/p/68378809
Author: tangtao Hangzhou University of Electronic Science and technology www.promiselee.com cn/tao
introduce
This article will show you GuiLite How it works, what the architecture looks like, and then you'll understand why GuiLite is the smallest and simplest GUI library. ...
Added by l9pt5 on Wed, 05 Jan 2022 14:31:08 +0200
Implementation of C++vector simulation
I can accept failure, but I can't accept that I haven't struggled.
🎓 vector introduction
vector is a sequence container that represents a dynamic array of transform sizes.Like arrays, vectors use continuous storage space to store elements. This means that you can use subscripts to access the elements of a vector, which is as efficient ...
Added by sidhumaharaj on Wed, 05 Jan 2022 14:10:41 +0200
The actual combat of C/C + + meteorological data center will teach you to do industrial projects
The actual combat of C/C + + meteorological data center will teach you to do industrial projectsWhy return a unified canonical format for SpringBootUnder the condition of acquiescence, there are three common return formats of SpringBoot:First: return String@GetMapping("/hello")public String getStr(){ return "hello,javadaily";}Copy codeAt this ...
Added by fahad on Wed, 05 Jan 2022 12:44:41 +0200