vector container of C + + high-order STL
The vector container is the best alternative to arrays
vector container can also be used to save and manage a large amount of data of the same type, but it is superior to array in terms of memory management and access to data elements: The dynamic increase or decrease of the capacity of the vector container replaces the fixed capacity of the a ...
Added by lordfrikk on Fri, 04 Mar 2022 13:02:24 +0200
[CyberSecurityLearning 69] deserialization vulnerability
catalogue
Deserialization
Why serialize
Serialization and deserialization in PHP
*Simple example
*Serialize Demo
*Where are the loopholes?
@Create a class, an object, and serialize and deserialize it
@Deserialization injection
*Why
Deserialization
Why serialize
class obj object
Baidu Encyclopedia's definition of serialization i ...
Added by chordsoflife on Fri, 04 Mar 2022 12:58:48 +0200
Compatibility competition of shared file system on cloud
"Everything is a document" is the basic design philosophy of UNIX. Files are organized into tree directories according to hierarchical relationships, which constitute the basic form of the file system. When using the file system to save data, users do not need to care about the underlying storage mode of data, and can access it accord ...
Added by ropic on Fri, 04 Mar 2022 12:45:29 +0200
[single instance mode, multi instance mode, factory mode and enumeration]
1. Single case design mode
Function: single instance mode can ensure that there is only one instance of the class applying this mode in the system. That is, an object can only have one instantiated object.
Implementation steps
1. Privatize the construction method of the class so that it cannot instantiate the object outside the class th ...
Added by hrichman on Fri, 04 Mar 2022 12:05:41 +0200
Day 10 of learning to use IntelliJ IDEA: Java advanced syntax - multithreading
1, Understanding of programs, processes and threads
1. Program
Concept: it is a set of instructions written in a certain language to complete a specific task. Refers to a piece of static code.
2. Process
Concept: an execution process of a program, or a running program.
Note: as the unit of resource allocation, the system will allocate diff ...
Added by bloodl on Fri, 04 Mar 2022 12:03:33 +0200
Notes of the Blue Bridge Cup book (4: follow the content of the previous blue bridge cloud class, C + +)
The experiment in this section is mainly to integrate and run through the knowledge points we have learned before, and explain the actual combat through four real blue bridge cup questions, so as to lead you to apply what you have learned.
One of the best lectures on the real topic of the Blue Bridge Cup
Real question of 2020 Blue Bridge ...
Added by sudhakararaog on Fri, 04 Mar 2022 12:01:22 +0200
Reuse of React components
Turn:
Reuse of React components
Reuse of React components
At present, the engineering of the front end is becoming more and more important. Although Ctrl+C and Ctrl+V can also meet the requirements, it is a huge task once facing modification. Therefore, it is particularly important to reduce the copy of code, increase the packaging and r ...
Added by TowerOfPower on Fri, 04 Mar 2022 11:45:29 +0200
Function implementation c language basic problem + duplicate disk
Unknowingly, it was 2022. I felt that I was too delayed during the holiday, so I knocked the code during the online class_ (: з」 ∠)_
Catalogue
1. Early stage code: output prime numbers within 100 ~ 200 ----- > function realization + sublimation (judge whether the input is prime).
2. Early stage code: output leap year from 1000 to ...
Added by junkie_doodle on Fri, 04 Mar 2022 11:43:55 +0200
Dark horse programmer C + + learning record: class and object part5 operator overloading
4.5 operator overloading
1. Overload of plus operator
2. Shift left operator overload
cout: standard output stream object. There can only be one object globally, so it can only be passed by reference
Always add input to the back: the idea of chain programming:
Chain programming idea: it is to pass multiple operations (multiple lines of ...
Added by Pintonite on Fri, 04 Mar 2022 11:40:33 +0200
Leetcode2104: subarray range and (medium, iteration)
1. Title Description
Give you an integer array nums. In nums, the range of subarray is the difference between the largest element and the smallest element in the subarray. Returns the sum of all subarray ranges in num. A subarray is a sequence of consecutive non empty elements in an array.
Example 1: Input: num = [1,2,3] Output: 4 Explanatio ...
Added by gilliat on Fri, 04 Mar 2022 11:36:13 +0200