Primary pointer knowledge points
catalogue
1. What is the pointer?
2. Pointer and pointer type
2.1} pointer + integer
2.2 pointer dereference
3. Field pointer
3.1} cause of formation
3.1.1} pointer not initialized
3.1.2 pointer cross-border access
3.1.3 # release of space pointed by pointer
3.2 # how to avoid wild pointer
4. Pointer operation
4.1 pointer + - intege ...
Added by mrsocks on Mon, 07 Feb 2022 20:11:28 +0200
Pointer variable, array pointer, pointer array, level 2 array, function pointer, void pointer
preface
Pointer is not only the key point of c language, but also the difficulty of c language. Generally, we won't make mistakes in the simplest pointer variables. We can encounter pointer array, array pointer, two-dimensional pointer, three-dimensional pointer, function pointer and void pointer. Sometimes it gets confused. Today, I spend a d ...
Added by vivekjain on Mon, 07 Feb 2022 15:06:51 +0200
PAT class B 1073 problem solving
Title details:
Common scoring method for 1073 multiple choice questions (20 points) Correcting multiple-choice questions is a troublesome thing. There are many different scoring methods. One of the most common scoring methods is: if the examinee selects some correct options and does not select any wrong options, he will get a 50% score; If a c ...
Added by aneesme on Mon, 07 Feb 2022 12:28:24 +0200
Linear list - single linked list - array
Linear table
Sequential list and linked list
Abstract data structure - data combination and operation set
Header node: the first node that does not store data elements
First element node: the first node where data elements are stored
1, Definition of linear table
A finite sequence of zero or more data elements
There is order between elem ...
Added by novicephp on Mon, 07 Feb 2022 07:15:36 +0200
It's hard to hear C language? Why don't you come and see my article
1. Write in front
Today is the seventh day of the lunar new year. After a few days of new year's greetings, I have begun to update my C language series. The process of a Java programmer learning C language. As the saying goes, learning a new language and an introductory book are more important. Tan Haoqiang is the most important in China. Bein ...
Added by vijdev on Mon, 07 Feb 2022 06:13:41 +0200
Detailed explanation of "the usage of C language fread and fwrite" in the review of computer science upgraded course (first draft)
Detailed explanation of the usage of C language fread and fwrite (read and write files in the form of data blocks)
The fgets() function is "extreme", and can only "read one line of content in the file" at most at a time, because fgtes() ends reading when it encounters a "newline character".
If you want to read ...
Added by moret on Sun, 06 Feb 2022 23:49:35 +0200
Data structure learning, binary tree
catalogue
Header file and macro definition to be referenced in advance
Other data structures needed (chain stack and chain queue)
The structure of the binary tree used (binary linked list)
Its basic operation interface
basic operation
Create an empty binary tree
Create a binary tree, where the value of the root node is e, and L and R ar ...
Added by fred_belanger on Sun, 06 Feb 2022 22:12:55 +0200
< STM32 learning "-- running lantern experiment
1. Hardware
The hardware schematic diagram is as follows: The hardware schematic diagram is the hardware circuit of punctual atom stm32zet6 elite version. Different development boards should be based on the actual circuit. First of all, to make the led light up, there must be a voltage difference between the two sides of the led lamp. As can b ...
Added by farsighted on Sun, 06 Feb 2022 05:02:26 +0200
Infix expression to suffix expression and evaluation
Because in the school is really too idle, so wrote an expression evaluation of the C language program, hope big guys can correct.
Basic idea:
Just like putting an elephant in a refrigerator, we need to evaluate the expression in three steps.
Enter an infix expression (the expression we usually see)Convert infix expression to suffix express ...
Added by neo926 on Sat, 05 Feb 2022 13:47:10 +0200
The secret of string function
catalogue
1. String function
1.strcpy application and Implementation
2. Application and implementation of strcat
3. Application and implementation of StrCmp
4. STR application and Implementation
1. String function
When it comes to string functions, I believe they are not unfamiliar. Today, we mainly understand the applicat ...
Added by xeirus on Sat, 05 Feb 2022 09:58:06 +0200