Basic understanding of design patterns
Baidu definition: design mode (Design pattern) is a set of code design experience that is repeatedly used, known by most people, classified and catalogued. The purpose of using design patterns is to reuse code, make code easier to be understood by others and ensure code reliability. There is no doubt that design patterns win more for themselves ...
Posted by sarika on Tue, 28 Dec 2021 14:52:57 +0100
C++ Windows packages file resources into exe and reads them out
Are you like me, Total number of exe files built (plus resource files) try to keep it as few as possible. It's better to have only one file, or some things don't want to put some important things outside exe. Even after encryption, you don't feel at ease. Then rc and windows api can meet your needs. If you want to dazzle you with more than 100 ...
Posted by krotkruton on Tue, 28 Dec 2021 07:40:08 +0100
Polymorphism and interface of C + + foundation
01. Polymorphism (key and difficult points)
1. What is polymorphism:
When the same operation acts on different objects, it can have different explanations and produce different effects. This is polymorphism
class People
{
public:
//virtual function
virtual void Mypro()
{
}
};
class xishi :public People
{
public:
//Override the virtual ...
Posted by adren on Tue, 28 Dec 2021 07:18:23 +0100
[Package] RosBridge -- break through the data barrier between Ros and non Ros environments #2, and implement the function ppianpak / rosbridgecpp on the C + + side
1 Overview
In the last article [Package] RosBridge -- break through the data barrier between Ros and non Ros environment In this article, I introduced how to conduct data communication between non Ros and Ros systems through RosBridge, and realized half of the communication architecture, that is, the left half of the picture. In this article, ...
Posted by west4me on Tue, 28 Dec 2021 05:49:46 +0100
Data structure (3. stack)
Catalog
1. Preface
2. Introduction of Stack Content
3. Sequence stack
Chain Stack
V. Summary
1. Preface
This paper mainly introduces the related knowledge of stack and some basic operations of stack. The encapsulated sequential stack and chain stack code are given for direct replication.
2. Introduction of Stack Content
A stack is a l ...
Posted by contex on Tue, 28 Dec 2021 04:57:20 +0100
C + + language function template
C + + language function template
Generic programming is a programming method in which the algorithm does not specify the type of data to be operated. Genericity means that the algorithm can be applied to multiple data types as long as it is implemented once. The advantage of generic programming method is to reduce the writing of repeate ...
Posted by DarkEden on Mon, 27 Dec 2021 19:35:16 +0100
C + + implicit type conversion
Implicit type conversion has different conversion methods for different types. Generally, it can be divided into two types, arithmetic type and class type.
1. Arithmetic type conversion
The design principle of arithmetic type conversion is to avoid loss of precision as much as possible.
Specifically, there are the following reference rules: ...
Posted by nrerup on Mon, 27 Dec 2021 18:17:22 +0100
C + + - implementation code with the least thread pool
preface
During this time, I read the basic content of C + + concurrent programming practice and wanted to use the recently learned knowledge to realize a simple thread pool by myself.
thinking
Personal understanding of thread pool is to use a fixed number of threads that have been created to perform the specified tasks, so as to avoid th ...
Posted by lauriedunsire on Mon, 27 Dec 2021 14:47:10 +0100
[NOI2013] vector inner product
subject
Portal to LOJ
thinking
This question is really, really, really, really outrageous. Better from
k
=
2
k=2
k=2 start.
First of all, we need to think of such a thing: multiple vectors and multiple vectors, fi ...
Posted by greip on Mon, 27 Dec 2021 01:58:04 +0100
Summary of dark horse cloud disk project
Overall architecture diagram
1. Distributed memory fast DFS
2. redis cache database
3. MySql database
4.HTTP protocol
5. Server nginx
6. Dynamic request processing fastcgi spawn fcgi
7. Client Qt
According to the function of the client, it is summarized in modules
Directory composition of client
common public interface, ...
Posted by paddycallaghan on Sun, 26 Dec 2021 23:22:39 +0100