[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 […]

[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 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 […]