C + + Advanced -- program memory model - four memory areas
catalogue
c + + core programming
Memory partition model
1. Before program operation
2 after the program runs
3 new operator
c + + core programming
This stage mainly focuses on the detailed explanation of C + + object-oriented programming technology, and discusses the core and essence of C + +.
Memory partition model
When the C + + p ...
Posted by solarisuser on Fri, 04 Feb 2022 05:00:30 +0100
Java design pattern entry-level case - continuous output
preface
Java Design Patterns
1, Singleton mode
Hungry Han style
public class Singleton {
private static Singleton instance = new Singleton();
private Singleton() {
}
public static Singleton getInstance() {
return instance;
}
}
This is the simplest and crudest way to implement a safe Singleton mode, whi ...
Posted by Toby on Thu, 03 Feb 2022 21:00:52 +0100
Seven principles of design pattern
1, Foreword
Usually, many people think that the design pattern principle is six, and I have written seven here. Don't think it's a mistake. Don't say anything superfluous. Just look down.
2, Single responsibility principle
2.1 concept
For classes, that is, a class should be responsible for only one responsibility. If category A is respo ...
Posted by nuttycoder on Thu, 03 Feb 2022 20:38:33 +0100
Sword finger Offer 67 Convert string to integer
Title Description:
Write a function StrToInt to realize the function of converting string into integer. atoi or other similar library functions cannot be used.
First, the function discards useless opening space characters as needed until the first non space character is found.
When the first non empty character we find is a positive ...
Posted by supermars on Thu, 03 Feb 2022 20:23:54 +0100
Knowledge Supplement 3: Python -- class inheritance
Foundation of class
class Dog:
# This class is created from white space, so there are no parentheses in the definition
# The first letter of the class should be capitalized
def __init__(self, name, age):
# init has two underscores on both sides, which is a special method
# This method is defined to contain three for ...
Posted by dacio on Thu, 03 Feb 2022 20:02:58 +0100
Summary of Java Se and objects
catalogue
1, Preliminary understanding of classes and objects
2, Member of class
ย 1. field
2. Method
3.static keyword
3, Encapsulation
1. What is encapsulation
2.private implementation encapsulation
3.getter and setter methods
4, Construction method
5, Code block
6, Supplement
1.toString method:
ย 2. Anonymous object
1, ...
Posted by peddel on Thu, 03 Feb 2022 19:26:29 +0100
Java: Deep understanding of Serializable and arcelable
Preface
This article is the author's record of learning Serializable and arcelable to explore his own questions
I. Problems Caused by the Author
Why does Java implement Serializable objects to realize that they support serialization? Why is Serializable less efficient than Parcelable?
2. Interpretation of Source Code
Serializable cor ...
Posted by socadmin on Thu, 03 Feb 2022 18:22:18 +0100
Java collection: on LinkedList
๐ฉ Java collection: on LinkedList
๐ 1. Use of LinkedList set
โ๏ธ 1.1 simple use of LinkedList set
import java.util.LinkedList;
public class TestDemo {
public static void main(String[] args) {
LinkedList<Integer> list = new LinkedList<>();
list.add(11);
list.add(22);
list.add(33);
...
Posted by jakem on Thu, 03 Feb 2022 16:29:01 +0100
How to obtain wechat user openid
๐ Blog home page: A professional who advocates learning technology Xiao Xiao is here ๐ ๐ฃ Today's article is "how to obtain wechat user openid" ๐ฃ ๐ฃ I hope you can finish reading this article patiently ๐ฃ ๐ Bloggers are also in the learning stage. If you find any problems, please let us know. Thank you very much ๐ ๐ At the same ...
Posted by veronicabend on Thu, 03 Feb 2022 16:28:39 +0100
Explain java multithreading in simple terms (basic chapter)
1 basic concepts of process and thread
1.1 background of the process
The original computer can only accept some specific instructions. Every time a user inputs an instruction, the computer makes an operation. When the user is thinking or typing, the computer is waiting. This is very inefficient. In many cases, the computer is in a waiting sta ...
Posted by adam87 on Thu, 03 Feb 2022 15:05:17 +0100