Test RT thread dynamic module
It is said that RT thread OS developed by Chinese people has been for some time and has not been tried. After all, learning a new platform takes a lot of time and energy. The main purpose of testing RT thread this time is to use its dynamic library function. Now the Cortex-M series Arm processor is very powerful. However, ...
Posted by Jay_Seagrave on Wed, 24 Nov 2021 08:19:01 -0800
Linux C/C + + learning 3: the role of extern "C"
1. Overview of extern "C"
The main function of extern "C" is to implement other C codes in C++ code. The format is as follows: cplusplus is the default macro defined by the C + + compiler, and the code block part is the C language implementation code. Extern "C" instructs the compiler to compile this part of ...
Posted by kbaker on Wed, 24 Nov 2021 07:59:53 -0800
Learning notes on special member variables in C + + classes
It is said that the roommate static member variable does not know its role, and it is also said that the roommate const is not very good. I wrote this study note with my backhand. The data members in a class not only have int s and char s, but also describe many complex situations. The data members in a class may need to be shared among multipl ...
Posted by TheHeretic on Wed, 24 Nov 2021 05:29:06 -0800
C++_ Illustration of insertion search judgment of hand torn red black tree_ KeyValue model (trigeminal chain)
1. Red black tree concept
First look at the AVL tree: AVL tree is a highly balanced binary search tree Implementation of AVL tree insertion Look at the red and black trees: The Red Black tree is also a binary search tree. However, a storage bit is added to each node to represent the color of the node, which can be Red or Black. By limiting ...
Posted by tekky on Tue, 23 Nov 2021 17:43:41 -0800
C + + core programming
##0. Preface Recently, when doing algorithm transplantation, I found that I had forgotten a lot about c + +, so I planned to pick it up again. I feel shallow on paper. I never know that I have to practice it It has always been the principle of my study and work. I prefer hands-on. So I knocked the basic knowledge of c + + line by line, no matte ...
Posted by Leshiy on Tue, 23 Nov 2021 17:26:52 -0800
yolov5 decoding is accelerated using GPU
The principle of YOLOv5 will not be described too much here. Start directly from the output head, and then design such as encoding and decoding:
1. The original output of yolov5 series is three head heads. The picture above is the picture with the input resolution of 608 * 608. If the input is changed to the pictu ...
Posted by ajanoult on Tue, 23 Nov 2021 05:10:20 -0800
Design pattern learning notes - Factory Pattern
Pre knowledge, six principles of design pattern
General principle: Open Close Principle The opening and closing principle means that it is open to extensions and closed to modifications. When the program needs to be expanded, you can't modify the original code, but expand the original code to achieve a hot plug effect. So in a word, in order t ...
Posted by plex303 on Tue, 23 Nov 2021 02:49:06 -0800
[operating system experiment] simulation using dynamic partition allocation (implemented in c + +)
Experimental purpose
Understand the data structure and allocation algorithm used in dynamic partition allocation, and further deepen the understanding of dynamic partition storage management and its implementation process.
Experimental content
(1) The dynamic partition allocation process alloc() and the recovery process free() using the ...
Posted by cpjok on Mon, 22 Nov 2021 01:25:01 -0800
Usage of template (super detailed)
Suppose we have the following function
int compare(const string &v1,const string &v2)
{
if(v1<v2)return -1;
if(v1>v2)return 1;
return 0;
}
This function compares two values and indicates the greater than, less than, or equal relationship between the two values.
1. Function template
1.
template<typename T>
...
Posted by andyhajime on Sun, 21 Nov 2021 17:12:43 -0800
Hands on C + + game animation programming reading notes
Chapter 7: Exploring the glTF File Format
glTF is a standard format that can store both mesh and animation data. a file format that contains everything you need to display animated models. It's a standard format that most three-dimensional content creation applications can export to and allows you to load any arbitrary model.
glTF: Graph ...
Posted by pozer69 on Sun, 21 Nov 2021 15:45:07 -0800