Data structure and algorithm (2-2) linked storage of linear list (single linked list, static linked list, circular linked list, two-way circular linked list)

catalogue 1, Single linked list 1. Storage mode 2. Insert 3. Delete Total code: II. Static linked list 1. Storage mode 2. Insert 3. Delete 4. Traversal Total code: 3, Circular linked list Total code: 4, Bidirectional circular linked list 1. Storage method: 2. Insert and delete 3. Forward traversal and reverse traversal Total ...

Added by benrussell on Sat, 01 Jan 2022 21:41:04 +0200

Greenhouse environment detection system based on 51 single chip microcomputer

** Greenhouse environment monitoring system based on 51 single chip microcomputer Air temperature and humidity monitoring, soil temperature and humidity monitoring, light monitoring, wireless data transmission ** The source code is attached at the end of the article 1.1 research background With the continuous improvement of peopl ...

Added by loopt on Sat, 01 Jan 2022 15:26:06 +0200

C language - basic function query - knowledge points

Chapter II problem solving and programming Basic knowledge Basic framework // Basic composition = header file + declaration + main function #include<stdio.h> int a = 8; void main() { // Code block return 0; } Common header file #include<stdio.h> #include<string.h> #include <stdlib.h> ----Remember to add thes ...

Added by sohdubom on Sat, 01 Jan 2022 13:39:12 +0200

Computer experiment of data structure (Chapter II) IV

Computer experiment of data structure (Chapter II) III 12. In an incrementally ordered linear table, there are elements with the same value. If the storage method is a single linked list, remove the elements with the same value so that there are no duplicate elements in the table. void DeleteEle(LinkList &L) { LNode* p = L->next, *q; ...

Added by Beatnik on Sat, 01 Jan 2022 00:54:08 +0200

[C language] from introduction to penetration (branch and loop statements)

preface: This article explains the use of branch statements and loop statements to clarify the branches and loops. 1, Statement c language is a structured programming language. There are three structures in c language: Sequential structure (from top to bottom)Select structure (if, switch)Loop structure (while, for, do... While) W ...

Added by Mr_jmm on Fri, 31 Dec 2021 16:55:53 +0200

Basic knowledge of embedded C language -- compound type & Memory & etc

catalogue 1. Generate random number 2. Value transmission and address transmission 3. Return the address of the variable: 4. Address to return to the heap area: 5. Structure array 6. Structure pointer 7. Structure sleeve pointer 8. Structure array as formal parameter of function 9. Enumeration: 10. Memory storage mode: size side &nbs ...

Added by BahBah on Fri, 31 Dec 2021 05:40:47 +0200

C language array, one-dimensional and two-dimensional array, string, array in function parameters, empty input buffer, bubble & select sorting

Introduction: the use and creation of a two-dimensional array string, how to transfer the string and array parameters to the function, string pointer, string input and output, the method of emptying the input buffer, selection sorting and bubble sorting. catalogue I One dimensional array 1. Creation and definition of one-dimensional array 2 ...

Added by ChaosDream on Fri, 31 Dec 2021 04:32:49 +0200

Basic knowledge of embedded C language -- memory management & Function & pointer & array

Memory management: local variableStatic local variableglobal variablestatic globalScopeValid within {} of the defined variableValid within {} of the defined variableThe whole project, all documentsCurrent filelife cycleThe program runs to the variable definition to open up space, and the space is released after the function is completedThe s ...

Added by beginneratphp on Thu, 30 Dec 2021 20:42:38 +0200

File definition, file operation function, operation steps and precautions, etc

1. What is a file and its unique identification: three elements (path, file name, suffix) File: a collection of data stored on external media2. File operation function 2.1 fopen return value: two parameters of FILE pointer FILE * (the first parameter [FILE name] and the second parameter [how to open the FILE]) 2.2 there is only one Fclose  par ...

Added by hawk72500 on Thu, 30 Dec 2021 18:28:29 +0200

Tic_Tac_Toe (three piece chess) game -- C language implementation

1 demand analysis Sanzi chess is a traditional folk game, also known as Jiugong chess, circle fork, one dragon, Jingzi chess, etc. Rules of the game: the two sides take turns to settle the pieces. The one who takes the lead in forming a straight line between the horizontal, vertical and opposite corners wins. The project aims to realize simpl ...

Added by sandsquid on Thu, 30 Dec 2021 17:55:43 +0200