Tip: This article mainly explains the use of primary first-level pointers and second-level pointers in C language Article directory Preface 1. What is a pointer? 1.1 Memory in the computer 1.2 What is the role of pointers? 1.3 Pointer variables 2. Types of pointers 2.1 Pointer size 2.3 The role of pointer types 3. Wild […]
Tag: elementary
[Elementary C++] Classes and Objects (1)
Directory 1. First introduction to object-oriented thinking 2. Class struct 2.1 Struct and usage in C++ 3. class class 3.1 Class definition 3.2 Class access qualifiers 3.2.1 What are access qualifiers? 3.2.2 Use of access qualifiers 3.2.3 Usage specifications of access qualifiers 3.2.4 Access Qualifiers and Encapsulation 3.3 Separation of class declaration and definition 3.3.1 […]
Inverse matrix and elementary transformation of matrix based on python
Applicable environment: Python 3.11 + sympy library + VS code + Jupyter notebook This article has imported the sympy library by default, with the alias sp, and the specific command to set the cell to multi-line output is: import sympy as sp from IPython.core.interactiveshell import InteractiveShell InteractiveShell.ast_node_interactivity = “all” 1. Inverse matrix and adjoint matrix […]
The sixteenth bullet of JAVAEE elementary related content–network programming
Write before The content of this section is to first make a simple improvement to Shififuban (UDP echo server), and then start to introduce TCP stream socket programming. Table of Contents write before 1.Improve the echo server 1.1 Complete code implementation 1.2 Running output results 2. TCP stream socket programming 2.1ServerSocketAPI 2.2SocketAPI 3.TCP version of […]
Elementary DS in C language – implementation of binary tree (simple and easy to understand)
Table of Contents 0.Preface 1. Classification of binary trees 1. Complete binary tree 2. Full binary tree 3. Only the left (right) subtree: 4. Balanced binary tree 2. Implementation of binary tree (search tree) 1. Function statement of binary tree 2. Implementation of binary tree function 1. Binary tree creation function 2. Binary tree destruction […]
The fifteenth bullet of JAVAEE elementary related content–network programming
Write before Briefly describe the Layer 3 forwarding of routers and Layer 2 forwarding of switches. The router is layer 3 forwarding –> forwarding at the network layer. [It is necessary to parse out the source IP and destination IP in the IP protocol to plan the path] The switch is Layer 2 forwarding –> […]
[Elementary C++ (2)] Default parameters & function overloading
Table of Contents Preface 1. Default parameters 1.1 What are default parameters? 1.2 Classification of default parameters 1.2.1 All default parameters 1.2.2 Semi-default parameters 2. Function overloading 2.1 What is function overloading 2.2 Default parameters and function overloading 2.3 Use of function overloading 3. Reasons why C++ supports function overloading Summarize Foreword When learning C […]
[Elementary C++] Reference&inline function&auto keyword&range for loop&nullptr
================================================== ======================= There are more series of columns on the personal homepage: Xiaobai is not a program Yuan My little warehouse: Gitee C++ series column: C++ headache ================================================== ======================= Table of Contents Preface Quote concept Characteristics of citations Often quoted Referenced usage scenarios Make parameters do return value The difference between reference and pointer The […]
[Elementary C Language] Branch statements and loop statements
Table of Contents 1. What is a statement? 2. Branch statement 2.1 if statement 2.1.1 Floating else 2.1.2 Comparison of if writing forms 2.2 switch statement 2.2.1 break in switch statement 2.2.2 default clause 2.2.3 Exercise 3. Loop statements 3.1 while loop 3.1.1 break in while statement 3.1.2 continue in while statement 3.2 for loop […]
Elementary data structure-binary tree
Binary tree Binary tree traversal Binary tree structure creation Creation of binary tree nodes Creation of binary tree Preorder traversal of binary tree Inorder traversal of binary tree Postorder traversal of binary tree The number of binary tree nodes The number of leaf nodes of a binary tree height of binary tree The number of […]