Advanced structure
catalogue
1. Basic knowledgeDeclaration of structure
2. Structure self reference
3. Initialization of structure
4. Structure memory alignment
5. Modify the default alignment number
1. Basic knowledge
The values of some variables with different structures can be members of different types.
Declaration of structure
struct tag//tag can ...
Posted by YOUAREtehSCENE on Sun, 06 Mar 2022 17:17:27 +0100
Hello Qt -- source code analysis of Qt signal slot mechanism
Based on QT4 Version 8.6
1, Principle of signal slot mechanism
1. Introduction to signal slot
Signal slot is an implementation of observer mode, and its characteristics are as follows:
A. A signal is an event that can be observed, or at least a notification that an event has occurred;
B. A slot is an observer, which is usually a function c ...
Posted by abhikerl on Sun, 06 Mar 2022 17:13:03 +0100
Audio and video development journey (65) - learning and practicing CMake with problems
catalogue
Create an executable program using CMakeCreate a dynamic / static library and use it as a libraryThe third-party library is introduced in the form of source code and used in the form of multi-layer directoryThe third lib library is shared across platforms to change the hierarchical structure of the codeOther small details (problems e ...
Posted by nediaz on Sun, 06 Mar 2022 17:08:20 +0100
Mutation waterfall map and subtype mutation waterfall
After sequencing, we can observe the presence of different subtypes of mutations based on the data of different genotypes.
There is only one file to be prepared. The format is as follows:
This is the risk model I analyzed in TCGA gastric cancer (STAD) database. The gastric cancer data is divided into high and low risks, and the data ca ...
Posted by mattkirkey on Sun, 06 Mar 2022 16:59:02 +0100
Record of abuse on March 6
D - ABC Transform
Meaning:
Given a string containing ABC, one character will become two characters for each extension. A →BC, B →CA, C →AB. Q times of inquiry, after ti times of expansion, what is the ki character? Q ≤10^5, ti<10^18, ki<min(1e18, the length of S(t))
Idea:
For a higher number of layers, each time the path is found, it ...
Posted by inversesoft123 on Sun, 06 Mar 2022 16:32:42 +0100
Linked list classic problem
Reverse linked list
There are two methods to reverse the linked list: iterative method and recursive method.
Iterative method
There are two ideas. One is to move the next node of the head node to the first one at a time until the head node becomes the last one; The second is to move the first node to the back of the tail node in turn until t ...
Posted by Chas267 on Sun, 06 Mar 2022 16:21:09 +0100
Element UI simple learning + add, delete, modify and check based on springboot
Element UI simple learning + add, delete, modify and check based on springboot
Sample demonstration
Springngbooy + Vue realizes simple addition, deletion, modification and query (simple separation of front and rear ends)
How to launch our vue ui
Our element ui created here is designed
We are graphical
ui (graphical interface) ...
Posted by Guardian-Mage on Sun, 06 Mar 2022 16:09:34 +0100
Simple implementation of vector in C + +
vector
Vectors are sequence containers that represent arrays that can be resized.
Like arrays, vectors use contiguous storage locations for their elements, which means that their elements can also be accessed using offsets on regular pointers to their elements and are as efficient as arrays. But unlike arrays, their size can change dynamically, ...
Posted by neville on Sun, 06 Mar 2022 16:00:57 +0100
Ajax sends json format data and sends files (FormData) and its own serialization component: serializers
Encoding format (contentType) of front and rear end transmission data
get request data is directly placed in the url? hinder
url?usernmae=junjie&password=123...
How post requests can be sent to the backend
form request
ajax request
Coding format of front and rear transmission data
urlencoded
formdata
json
Research form: the default dat ...
Posted by max101 on Sun, 06 Mar 2022 15:56:31 +0100
Algorithm - maximum depth of tree binary tree
Title addressMy solution /**
* 2ms 21.07
* 41M 33.17
* It's actually breadth first search
* The entry point is to see layer by layer, and build the next layer according to the current layer.
* */
public static int maxDepth(TreeNode root) {
if (null == root) {
return 0;
}
int de ...
Posted by tjmbc on Sun, 06 Mar 2022 15:56:23 +0100