Talk about heap in Windows
If you program in Windows, you should know some memory management of Windows, but
Pile(
Heap) is also part of memory management. This article may be helpful for you to understand the basic principle of Windows memory allocation and debug heap memory problems.
Windows Heap overview
The following figure is drawn with reference to < < ...
Posted by kabucek on Mon, 10 Jan 2022 21:38:57 +0100
Practical summary of C + + sort() function
0. Preface
When brushing leetcode, the sort function is a commonly used method. It has not systematically summarized the usage before, resulting in that the code writing is not smooth enough every time and slows down the speed of understanding questions. Therefore, I decided to summarize the usage of the sort() function and take notes to de ...
Posted by Dimwhit on Mon, 10 Jan 2022 19:53:02 +0100
C++ File Operation Knowledge Summary
Catalog
Basic File ConceptsFile I/OFile Order Read-Write and Random File Read-WriteOpening and Closing of FilesText File Processingget(), getline(), put() functionOther operations
1. Basic Document Concepts
The file can be viewed as a continuous set of strings that have no size Strings exist as streams, and files can also be viewed as a c ...
Posted by always_confused on Mon, 10 Jan 2022 18:28:27 +0100
Comprehensive practice of C + + programming (Zheng Li) in Tsinghua University
Comprehensive practice of C + + programming (Zheng Li) in Tsinghua University
preface
In the comprehensive practice of the course, the simulated bank is realized. Users can add savings and credit card accounts and deposit and withdraw money from the accounts. The savings accounts are settled on January 1 every year and the credit card a ...
Posted by doobster on Mon, 10 Jan 2022 15:34:25 +0100
Topic 1 simple search
50: Naruto and Sasuke BFS Description Sasuke was lured away by big snake pill. How long can Naruto catch up with him? A map (in the form of a two-dimensional matrix) and the locations of Sasuke and Naruto are known. You can go to every position on the map, but there are big snake pill's men in some positions. You need to defeat big snake pill's ...
Posted by todayme on Mon, 10 Jan 2022 12:48:12 +0100
[C + +] polymorphism: dynamic_cast
1,dynamic_ The role of cast
Function: converts the address of the base class to the address of the derived class. If the types match, the conversion succeeds. Otherwise, the conversion fails and returns an empty address.
Conversion principle:
dynamic_cast<B *>(p);
If p is a pointer to an object of type B, the conversion is successful ...
Posted by Jalz on Mon, 10 Jan 2022 11:21:02 +0100
C + + generic algorithm customization operation
Transfer function to algorithm
By default, another version of the generic algorithm is implemented, which accepts an additional parameter. For example, the sort function accepts the third parameter, which is a predicate.
A predicate is a callable expression whose return value is a value that can be used as a condition.
The predicates used by th ...
Posted by Simplicity on Mon, 10 Jan 2022 11:00:56 +0100
Simple thread pool
◆ summary
In this paper, the author tries to combine non blocking and blocking queues to become a new combined thread pool. The thread pool has a shared task queue, and each worker thread has a work task queue. Tasks submitted by thread pool users are first saved in the shared task queue. The scheduler thread of the thread pool assigns the task ...
Posted by osnewbie2004 on Mon, 10 Jan 2022 07:34:04 +0100
HENAU winter camp
A - identical test
Traverse from the beginning, output subscripts when encountering the same characters, and traverse to a relatively short string.
Space complexity O(1), time complexity O(n)
code:
#include <bits/stdc++.h>
using namespace std;
int main(){
string str1;
string str2;
getline(cin,str1);
getline(cin,str2);
for(int i=0 ...
Posted by cristal777 on Mon, 10 Jan 2022 07:12:24 +0100
University of Hong Kong R3live: hands on how to compile and run
R3live is the relevant achievement of the MARS experiment of the University of Hong Kong on Livox radar. It was opened to the public on December 31, 2021. Its main goal is to make a multi-sensor fusion scheme with Livox radar as the core. The following is the personal environment configuration and simple operation record under Ubuntu system.
T ...
Posted by itshim on Mon, 10 Jan 2022 05:16:50 +0100