Detailed introduction of array

catalogue 1, Concepts of sets, lists, and arrays 1. Assemble (1) Set concept (2) Three elements of set (3) Properties of sets 2. List (1) List concept (2) List features (3) Main performance 3. Index (1) Index concept (2) Advantages and disadvantages 4. Array (1) Array concept (2) The difference between array and list 2, One dime ...

Added by Xyphon on Mon, 31 Jan 2022 01:47:25 +0200

Day 4: branch statement and loop statement

Today's learning is more difficult than a few days ago. We should not only understand the composition and structure of various statements, but also have the ability of logic programming. Because it is a little basic, it is not difficult to learn. Today, we also use circular statements to learn: factorial algorithm, digital factorial addition an ...

Added by rpadilla on Sun, 30 Jan 2022 22:27:17 +0200

Learning notes -- recursive implementation of quick sorting

Note: all the data used in my test are of the type that can be compared in size without duplicate elements, and the sorting is in ascending order. In fact, the idea of fast sorting is very similar to bubble sorting. Bubble sorting is to complete the sorting through the continuous exchange between two adjacent elements. I think fast sorting ...

Added by Techissue2008 on Sun, 30 Jan 2022 15:54:24 +0200

The difference between c language memcpy() function and memmove() function and Its Simulation Implementation

1.memcpy() 1.1 INTRODUCTION Header file: #include < string h> memcpy() is used to copy memory data. Its prototype is:     void * memcpy ( void * dest, const void * src, size_t num ); memcpy() will copy the first num bytes of the memory content indicated by src to the memory address indicated by dest. Because the passed parameters are re ...

Added by shatztal on Sun, 30 Jan 2022 14:28:41 +0200

String function and character function

Character classification function Function returns true if its arguments meet the following conditions iscntrl any control character isspace blank characters: space ',' page feed '\ f', line feed '\ n', carriage return '\ r', tab '\ t' or vertical tab '\ v' isdigit decimal digits 0 ~ 9 isxdigit hexadecimal digit, including all decimal d ...

Added by skyagh on Sun, 30 Jan 2022 01:26:32 +0200

Pointer explanation (introduced by callback function)

After I first knew the pointer, I started the advanced pointer. In this part of the advanced pointer, I came into contact with a lot of knowledge about pointer. Pointer is really the essence of C language 1, Character pointer Among the types of pointers, it has been known that there is a pointer type called character pointer char* General u ...

Added by day_tripperz on Sun, 30 Jan 2022 01:19:40 +0200

C language file operation

catalogue 5, Random reading or input of files: 5.1 fseek function: 5.2 # ftell function: 5.3 rewind function: Vi Text and binary files: VII Determination of the end of file reading: 7.1 wrong use of feof function: 7.2 # how to judge whether the file reading is finished: 7.2.1 text documents: 7.2.2 binary file: 7.3 # use of feof funct ...

Added by strangermaster on Sat, 29 Jan 2022 23:48:39 +0200

NRF52810 transmission rate test

NRF52810 transmission speed test Recently, there was a project to use the NRF52810 Bluetooth IC, so I bought a board to test. The current demand of the project is not very high, and the transmission speed can reach 1KB/S. The test results of everyone on the Internet are very good. It can be tested to 80KB/S in 1M mode, so I also want to try an ...

Added by Ekate on Sat, 29 Jan 2022 21:42:07 +0200

TAILQ linked list learning notes

TAILQ linked list has been read many times before and after. Record some points in the learning process. 1. Data structure #define TAILQ_ENTRY(type) struct\ {\ struct type *tqe_next;\ struct type **tqe_prev;\ } TAILQ linked list uses a called TAILQ_ The structure of entry, which contains two pointers: 1) Pointer to the next node tqe ...

Added by bkanmani on Sat, 29 Jan 2022 15:35:35 +0200

Address book (dynamic and static) to achieve w-word C language advanced

catalogue 1. Preamble 2. Static implementation 2.1. Effect display diagram 2.2. Interface implementation 2.2.01. The first is our framework 2.2.02. Interface to implement 2.2.03. initialization 2.2.04. Add a contact 2.2.05. delete 2.2.06. Search 2.2.07. Change member data 2.02.08. Show members 2.02.09. Sort 2.3. source ...

Added by *mt on Sat, 29 Jan 2022 06:35:36 +0200