Win32 API Menus and Controls

control Control concept Control: a special kind of "child" window, the system has defined the window type Create like create window, call CreateWindow, each control has its own ID When a control event occurs, a notification message is sent to the parent window where it is located SendMessage and PostMessage can be used to send messa ...

Added by dmcdivitt on Fri, 26 Nov 2021 19:23:59 +0200

C + + STL (Standard Template Library) application

catalogue preface 1, Experimental content 2, Experimental process 1. Write algorithms to solve sequence transformation 1.1 implementation of non template functions   1.2 template function implementation 1.3 sort() function   2. Container test 2.1 vector storage 2.2 set storage   3. Map summary preface This ...

Added by gukii on Thu, 25 Nov 2021 23:54:06 +0200

Data structure and algorithm learning note tree

Data structure and algorithm learning notes (7) tree Previous review 1, Definition of tree and binary tree 1. Trees Definition of tree Recursive nested definition Other representations of trees It's a bit like this markdown syntax: AB E KL F C G D H M IJ Basic terms of trees ...

Added by caedo on Thu, 25 Nov 2021 00:59:12 +0200

IO multiplexing -- detailed explanation and example of poll

1, poll system call Poll and select adopt the polling method, that is, each call scans the entire set of registered file descriptors and returns the ready file descriptors to the user program. Therefore, the time complexity of their algorithm for detecting ready events is O(n). However, the way in which poll describes the fd set is different fr ...

Added by Branden Wagner on Wed, 24 Nov 2021 09:18:16 +0200

Configure OpenGL in VScode C + + environment (code runner + MinGW + llvm + freePlug)

This tutorial is applicable to Windows 64 bit operating system Install VScode: Download from the official website VSCode detailed installation tutorial After installing VScode, start configuring the C + + environment Install LLVM: Download LLVM Turn down the page, find this line, and click windows (64 bit) After downloading, click next t ...

Added by formlesstree4 on Wed, 24 Nov 2021 04:49:18 +0200

Learning notes of data structure, algorithm and application - C + + language description - binary tree

1, Tree A tree t is a set of non empty finite elements, one of which is the root, and the other elements form the subtree of t. As shown in the figure: Each element represents a node. The tree root is painted on the top and its subtree is painted on the bottom. There is an edge between the root and the root of the subtree. Similarly, each ...

Added by danleighton on Wed, 24 Nov 2021 02:08:31 +0200

How to hash custom types in C + +

summary The purpose of hash function is to calculate a hash code according to a given object, so that the object can be randomly and randomly placed in the hash table after hash code mapping, so as to avoid hash collision as much as possible. The version of the hash function provided in the C + + standard library is as follows (partial special ...

Added by sunil.23413 on Tue, 23 Nov 2021 19:24:34 +0200

Dynamic programming exercise

catalogue Basic dynamic programming: one dimension Sword finger Offer 10- I. Fibonacci sequence Sword finger Offer 10- II. Frog jumping steps Sword finger Offer 63. Maximum profit of stock Sword finger Offer 42. Maximum sum of continuous subarrays 198. House raiding 413. Division of arithmetic sequence Basic dynamic programming: 2D 64. ...

Added by indigobanana on Tue, 23 Nov 2021 16:57:59 +0200

LeetCode brush notes binary tree binary search tree operation

669 pruning binary search tree Given a binary lookup tree and two integers L and R, and l < R, try pruning the binary lookup tree so that the values of all nodes after pruning are within the range of [L, R]. The input is a binary lookup tree and two integers L and R, and the output is a trimmed binary lookup tree. Input: root = [3,0,4, ...

Added by kindoman on Mon, 22 Nov 2021 07:29:33 +0200

Industrial camera ranging development: practical part

preface This article will no longer involve the principle part. If you want to understand the basic knowledge, please see the previous article. We use the function in opencv, which is also the focus on this function. We get the external parameters through this function and get our final results through the external parameters! Opencv:SolvePNP ...

Added by Zangakat on Mon, 22 Nov 2021 04:14:45 +0200