12. C language -- linked list and state machine notes

Tip: This is just a note 1, Introduction of linked list 1.1 first, let's talk about the defects of arrays: array elements must be consistent; Once the number of array elements is specified, it cannot be changed. The 1.2 structure solves the first defect of the array, and the linked list solves the second defect of the array. 1.3 alway ...

Posted by Sandip on Sun, 06 Mar 2022 10:08:24 +0100

[school recruitment manual] after learning C language, have you mastered all these interview questions?

Hello, everyone. I'm safe and sound. Each Preface Blog home page: Safe and sound Author introduction: 2021 blog star Top2 Our slogan: 🌹 Little bit, big dream 🌹 Author's request: due to the limited level of bloggers, it is inevitable that there will be mistakes and inaccuracies. I am also very eager to know t ...

Posted by moonoo1974 on Sun, 06 Mar 2022 01:49:57 +0100

Teacher information management system

[this article is the author's final course design assignment, so it is long. The author's programming ability is weak, and many codes need to be improved. For the first time, I hope you can forgive me and forgive me; those who have optimization opinions are welcome to share with you in the comment area! I hope this article can help students in ...

Posted by 303tech on Sun, 06 Mar 2022 01:04:15 +0100

C language to achieve a simple Gobang game

catalogue Game ideas: 1. Print menu 2. Define chessboard ---- define a two-dimensional array 3. Initialize chessboard ------ initialize to space 4. Printing chessboard ----- first, you need to see the chessboard horn 5. Players play chess 6. Computer chess 7. Judge the end of the game 8. The main body of the total function of the game ...

Posted by hijack on Sat, 05 Mar 2022 16:21:16 +0100

Storage of data

catalogue I data type II Storage of integers in memory III Storage of floating point in memory I data type (1) Integer type: char, short, int, long These types are also divided into signed and unsigned, such as signed char and unsigned char Among them, short, int and long are unsigned by default in the compiler, and whether char is ...

Posted by Fahid on Sat, 05 Mar 2022 14:17:05 +0100

Time complexity of algorithm

The time of the algorithm is complex 1. Time complexity [] the concept of time complexity[~] time complexity rule (representation of big O)[~] common time complex calculations (1) The concept of time complexity: The time complexity of the algorithm is a function, which describes the operation time of the algorithm. The time spent by an algor ...

Posted by ggkfc on Sat, 05 Mar 2022 12:51:38 +0100

C language: Brush question summary

C language learning has come to an end. This paper is a summary of the recent learning of C language. Most of the questions come from niuke.com. This article is the last article in this stage of C language. After several months of study, I will write some blogs about Java. If I have the opportunity later, I will continue to improve the content ...

Posted by Brad on Sat, 05 Mar 2022 12:39:07 +0100

Talk about C language bit field / bit segment

catalogue 1. Concepts and definitions 2. Examples When doing embedded development, we often encounter such code: struct { unsigned int widthValidated : 1; unsigned int heightValidated : 1; } status; What does it mean to define structure variables in this way? The main reason is that when some information is stored, it only needs to o ...

Posted by drummerboy on Sat, 05 Mar 2022 12:21:25 +0100

C language: Address Book

Tip: after the article is written, the directory can be generated automatically. Please refer to the help document on the right for how to generate it preface 1, Design ideas Dynamic address book creation The first is to build the whole address book framework For contacts: 1. Create a structure iden to store the attributes ...

Posted by alexdoug on Sat, 05 Mar 2022 08:11:59 +0100

C language simple program practice

Square root of x int mySqrt(int x) { int low = 0, mid = 0, high = x; if (x < 0) return -1; if (x <= 1) return x; while(low + 1 < high) { mid = low + (high - low) / 2; if (x / mid < mid) high = mid; else low = mid; } return low; } Ge ...

Posted by dannau on Sat, 05 Mar 2022 06:44:02 +0100