C language advanced 13 advanced pointer

13.1 pointer to pointer example: int i; int *pi; int **ppi; 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 ...

Added by zhopa on Tue, 22 Feb 2022 14:24:34 +0200

[c language data structure] stack and queue related operations

Stack 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

[STM32] 2.4G wireless module nRF24L01 driver writing instructions

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

week02 project 3-input optimization

preface 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 login2.cpp #include <iostream> #include <Windows.h> #Include < string > / / St ...

Added by pontiac007 on Mon, 21 Feb 2022 16:07:33 +0200

STM32 basic review - detailed explanation I ² C (GPIO analog I2C)

preface 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! IIC protocol I ² C. Usually read as "i-Party C", ...

Added by thepriest on Mon, 21 Feb 2022 14:38:43 +0200

C language: function 1.0

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

First knowledge of branch statements

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 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int age =10;//Branch statements execute only one sentence by default if ...

Added by jlarson on Mon, 21 Feb 2022 13:09:04 +0200

Multithreaded concurrency tool -- J.U.C concurrent contracting -- AQS and ReentrantLock principle

Most of the tools in the JUC package are based on AQS, so let's learn the principle of AQS first 1.AQS principle 1.1 overview: The full name is AbstractQueuedSynchronizer, which is the framework of blocking lock and related synchronizer tools 1.2 features: 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

It's hard to hear C language? Why don't you take a look at my UNIX system call

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

2022 / 2 / 19, 20, 21 -- Notes on PAT mistakes in "experimental guidance for C language programming" and "basic problem set" of Zhejiang University Edition

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