Stay up late to burst the liver! C++ Core STL Container string Knowledge Points Compilation [10,000 words dry goods warning recommendation collection]
Preface
Some time ago, some fans asked me, when I finished my freshman year, I didn't know how I am doing with c++? Have you got all the points you need to know? Are you getting started?
I have sorted out the C++ Basic and Core Advanced Knowledge Points in the last few days. If you haven't seen them, you can see them! Stay up late to burst th ...
Posted by ntohky14 on Sat, 18 Dec 2021 20:41:38 +0100
Multi inheritance and Mixin comparison
Refer to c++ primer
Refer to Matsumoto's procedural world
Object oriented has three characteristics: Abstract encapsulation, inheritance and polymorphismAbstract encapsulation controls the access of data and methods through private and public, and divides the implementation and call
Inheritance (c + + as an example)
Data and common metho ...
Posted by cljones81 on Sat, 18 Dec 2021 20:32:39 +0100
6120: sandbags for Senior Students
describe
There are n children playing the game of losing sandbags. The rule is that after receiving the sandbags, each child will immediately throw them to another child. At the beginning, the sand bag was in the hands of the first child. After being thrown out m times, it returned to the hands of the first child. It can be assumed that the sa ...
Posted by YorkshireSteve on Sat, 18 Dec 2021 19:26:48 +0100
Topic summary of recursive backtracking (issue 4)
Directions for the first three phases:
Phase I
Phase II
Phase III
This should be the last issue of backtracking. The previous topics are more conventional, basically what subset or arrangement of written language. This issue summarizes some topics that prefer application. Of course, the essence is still that set.
Examples
Letter combinati ...
Posted by nmal on Sat, 18 Dec 2021 10:38:07 +0100
Qt/C + + implementation of multifunctional calculator
1, Interface layout
The following picture is the interface layout of the calculator. You can know the basic functions of the calculator from the interface, including basic operations of addition, subtraction, multiplication and division, cosine, sine and other function operations.
2, Function brief introduction and operation display
The ab ...
Posted by Sydok on Sat, 18 Dec 2021 09:17:54 +0100
The number of trees in the valley P5659
Title Description
Given a tree with a size of ∼ nn ∼ it has ∼ nn nodes and ∼ n - 1n − 1 edges. The nodes are numbered from ∼ 1 \sim n1 ∼ n. Initially, each node has a number of ∼ 1 \sim n1 ∼ n, and each number of ∼ 1 \sim n1 ∼ n only appears on exactly one node.
Next, you need to delete the edge e ...
Posted by dksmarte on Sat, 18 Dec 2021 08:57:16 +0100
C + + multithreading Foundation
1. Thread Foundation
This part is in the header file < thread >
Main contents:
std::thread t1(func, para);
std::thread t2(&A::func, &Aobj, para);
t1.join();
t1.detech();
t1.joinable();
1.1 creating threads
Basic mode: std::thread obj(func), func is an adjustable object, which can be:
functionFunction object &nd ...
Posted by webbwbb on Sat, 18 Dec 2021 06:43:47 +0100
Sincere sum: learning tutorial of C++ STL iterator
C++ STL iterator
One of the keys to understanding how to use C + + Standard Template Library (STL) containers is to understand how iterators work. Containers such as lists and maps don't behave like arrays, so you can't use a for loop to iterate over the elements. Similarly, because these containers cannot be accessed randomly, simple integer ...
Posted by Crave on Sat, 18 Dec 2021 03:56:08 +0100
xmake v2.6.2 release, new Linux kernel driver module construction support
Xmake It is a lightweight cross platform construction tool based on Lua.It is very lightweight and has no dependencies because it has built-in Lua runtime.It uses xmake Lua maintains project builds, compared to makefile / cmakelists Txt, the configuration syntax is more concise and intuitive, and is very friendly to novices. It can get started ...
Posted by myharshdesigner on Sat, 18 Dec 2021 02:19:27 +0100
Tencent music entertainment 2022 campus recruitment C + + written test programming topic
The test paper includes 4 questions, 3 programming questions and 1 question and answer, which is limited to 100 minutes.
First programming question
Title: Niuniu has a string s with a length of n only composed of characters' 1 'to' 9 '. Now Niuniu can intercept a substring with a length of k as a positive decimal integer. For example, for the ...
Posted by davestevens_uk on Fri, 17 Dec 2021 21:31:43 +0100