13.1 pointer to pointer
printf( "%d\n", ppi ); //If ppi is an automatic variable, it is not initialized and will allow a random value. If it is a static variable, print 0
//Before ppi is initialized, the contents of its storage unit are unknown
printf( "%d\n", &ppi ); //Print out the address ...
Linear tables that allow insert or delete operations only at one end.
1, Introduction to the basic operation of stack
& InitStack: initialize stack. Construct an empty stack S and allocate memory space.Destroy & stack: destroy stack. Destroy and free the memory space occupied by stack S.Push & S, X: enter the stack. If ...
Added by ypkumar on Tue, 22 Feb 2022 14:23:19 +0200
1, nRF24L01 + module introduction
nRF24L01 + is a single-chip 2.4GHz transceiver suitable for ultra-low power wireless applications. NRF24L01 + is designed to operate in the global ISM band of 2.400-2.4835GHz. to design a radio system using nRF24L01 +, only a single chip microcomputer (microcontroller) and some external pas ...
Added by shinoshi on Tue, 22 Feb 2022 05:19:39 +0200
This article mainly introduces the concepts of string and array in C/C + +
1. String storage variable
1.1 project requirements
On the basis of item 2, the user name and password are stored in strings
1.2 project realization
#Include < string > / / St ...
Added by pontiac007 on Mon, 21 Feb 2022 16:07:33 +0200
This blog is based on your own needs and the needs of the interview position, so I specially come to learn the two common communication protocols SPI and IIC again. The development board used here is STM32F03_MIN I also hope this blog can be of some help to you!
I ² C. Usually read as "i-Party C", ...
Added by thepriest on Mon, 21 Feb 2022 14:38:43 +0200
1. What is the function?
Wikipedia definition of function: subroutine
Subroutine is a part of code in a large program, which is composed of one or more statement blocks. It is responsible for completing a specific task and has relative independence compared with other codes.
Generally, there are input parameters and return values, which prov ...
Added by jimmy2gurpreet on Mon, 21 Feb 2022 14:06:17 +0200
What is a branch statement before understanding it?
Statement: a statement separated by a semicolon in C language, such as printf("hehe");
1, if else branch statement
The following code
int age =10;//Branch statements execute only one sentence by default
Added by jlarson on Mon, 21 Feb 2022 13:09:04 +0200
Most of the tools in the JUC package are based on AQS, so let's learn the principle of AQS first
The full name is AbstractQueuedSynchronizer, which is the framework of blocking lock and related synchronizer tools
The state attribute is used to represent the state of resources (exclusive mode and ...
Added by mikerh9 on Mon, 21 Feb 2022 11:26:05 +0200
1. Write in front
Previously, we have introduced some common knowledge of C language and standard input and output. In this blog, we will introduce the call of UNIX system interface. UNIX operating system provides services through a series of system calls. These system calls are actually functions in the operating system, which can be called b ...
Added by ekalath on Mon, 21 Feb 2022 11:14:49 +0200
7-18 finding the single root of polynomial by dichotomy (20 points)
The principle of finding the function root by dichotomy is: if the continuous function f(x) takes different signs at the two endpoints of the interval [a,b], that is, f (a) f (b) < 0, then it has at least one root r in this interval, that is, f(r)=0.
The steps of dichotomy ...
Added by RDx321 on Mon, 21 Feb 2022 02:32:21 +0200