Six skills to improve the vector performance of C++11
Vector is like the Swiss Army knife of C++ STL container. Bjarne Stoutsoup has a saying – "generally, if you need a container, use vector". Ordinary people like us regard this sentence as truth and just need to do the same. However, like other tools, vector is just a tool. It can improve efficiency and reduce efficiency.
In thi ...
Added by tommy445 on Sun, 30 Jan 2022 11:13:38 +0200
C + +: thread (std::thread)
1. Create a thread
Creating a thread is relatively simple. Instantiating a thread object with std thread completes the creation. Example:
1 #include <iostream>
2 #include <thread>
3 using namespace std;
4
5 void t1() //Ordinary functions used to execute threads
6 {
7 for (int i = 0; i < 20; ++i)
8 {
9 ...
Added by crimsonmoon on Sun, 30 Jan 2022 10:27:04 +0200
java socket for communication programming
Recently, I'm thinking about the implementation principle of some software and studying how those popular software are developed. It's quite interesting. Reviewing the software used every day, I found that the most commonly used software should be communication software, such as wechat and nailing. So I wondered how these communication software ...
Added by rodrigocaldeira on Sun, 30 Jan 2022 10:02:40 +0200
Python iterators, (higher-order functions), built-in functions
catalogue
iterator
range
start,stop
step
Mathematical correlation function
Binary correlation
sorted
map
reduce
filter
iterator
#Iterators are objects that can remember where to access traversal as a way to access collection elements #Access starts from the first element of the collection until all the elements in the lead col ...
Added by greeneel on Sun, 30 Jan 2022 07:38:34 +0200
Java object-oriented package and inheritance
Java object-oriented package and inheritance
⚡ Preface ⚡ ️ This article records the blogger's study of the object-oriented part and introduces you to the basic knowledge of Java - package and inheritance. The subsequent content will be continuously updated. (please understand that the first half of se basic grammar has not been updated due t ...
Added by alarik149 on Sun, 30 Jan 2022 06:02:40 +0200
Pointer explanation (introduced by callback function)
After I first knew the pointer, I started the advanced pointer. In this part of the advanced pointer, I came into contact with a lot of knowledge about pointer. Pointer is really the essence of C language
1, Character pointer
Among the types of pointers, it has been known that there is a pointer type called character pointer char*
General u ...
Added by day_tripperz on Sun, 30 Jan 2022 01:19:40 +0200
6hutool actual combat: IoUtil stream operation tool class (common operation of stream)
Technical work should be rewarded
Like and watch again to form a habit
hutool actual combat (take you to master various tools inside) directory
Purpose: IO tool class (common operation of stream)
Usage scenario
The IO tool class is only used to read and write auxiliary streams and is not responsible for closing streams. The reason is th ...
Added by alex clone on Sun, 30 Jan 2022 01:04:32 +0200
Get to know node JS (fs/path/http module)
1. Get to know node js
1. What is a node js
Node.js is a JavaScript running environment based on Chrome V8 engine.
Node.js official website address: https://nodejs.org/zh-cn/
.2. Node. JavaScript running environment in JS
.3. Node. What can JS do
Node. As a JavaScript running environment, JS only prov ...
Added by tomcurcuruto on Sun, 30 Jan 2022 00:52:00 +0200
C language file operation
catalogue
5, Random reading or input of files:
5.1 fseek function:
5.2 # ftell function:
5.3 rewind function:
Vi Text and binary files:
VII Determination of the end of file reading:
7.1 wrong use of feof function:
7.2 # how to judge whether the file reading is finished:
7.2.1 text documents:
7.2.2 binary file:
7.3 # use of feof funct ...
Added by strangermaster on Sat, 29 Jan 2022 23:48:39 +0200
The three simple and easy-to-learn SSM frameworks (Spring + spring MVC + mybatis) require Ajax asynchronous technology integration. Have you failed?
I. Introduction to SSM framework
SSM framework is the acronym of Spring + Spring MVC + MyBatis. It is the mainstream Java EE enterprise framework after inheriting SSH. It is suitable for building various large-scale enterprise application systems. As shown in the figure:
1, What is Spring
Spring is an open source framework. It is a ligh ...
Added by hammerslane on Sat, 29 Jan 2022 20:33:39 +0200