ATM - C language final assignment
Hello, I'm Chen Meng~ After a few months, I met you again. It's close to the end of the term. I'm really busy recently. Today, I want to share with you the ATM code. Although there is a lot of code, it is not difficult. If you want to understand the soul of C language - pointer, you may be disappointed. My article is suitable for novices. How t ...
Added by waterssaz on Sat, 22 Jan 2022 03:44:14 +0200
ADT -- data structure of binary tree (C language)
(the complete code is at the end of the text and the user manual is attached)
Implemented operations
1. Tree initialization
2. Traversal binary tree
Traversing binary tree in sequence (non recursive using stack)
Middle order traversal binary tree ( ...
Added by ppatwari on Sat, 22 Jan 2022 01:59:49 +0200
C language experiment 7
Click like before copying
6-1 Experiment 7_ 11_ Cyclic shift (100 points)
Design function void shift (int * array, int num, int size);, Realize the circular movement of elements in an integer array to the left by several positions. The meaning of cyclic shift to the left is as follows:
For example, the original array a [0], a [1] The eleme ...
Added by Alienware on Fri, 21 Jan 2022 22:58:48 +0200
[fundamentals of C language algorithm] solve the maximum common divisor and find prime numbers
Solving the maximum common divisor
In the foundation of C language, one of the most common problems is to solve the maximum common divisor. First of all, we need to know what the maximum common divisor is (those who have studied in primary school should understand it). I won't go into details here. Secondly, we need to use the most basic code ...
Added by adamb10 on Fri, 21 Jan 2022 17:20:54 +0200
[network socket] temperature reporting based on poll and epoll communication
poll function
poll is a function in the character device driver in Linux. poll is essentially no different from select. It copies the array passed in by the user to the kernel space, and then queries the device status corresponding to each fd. If the device is ready, add an item to the device waiting queue and continue to traverse. If no r ...
Added by FunkyELF on Fri, 21 Jan 2022 16:21:31 +0200
[embedded C language series] Pointer
Pointer
Initializing pointer variables
A pointer is a variable whose value is a memory address. Just as the value of a char type variable is a character, the value of an int type variable is an integer, and the value of a pointer variable is an address.
To create a pointer variable, first declare the type of the pointer variable.
int *pi; / ...
Added by Nameless12 on Fri, 21 Jan 2022 11:41:14 +0200
Pointer and string
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
Tip: the following is the main content of this article. The following cases can be used for reference
1, What's the use of pointers
1. Pointer application scenario 1
Exchange the values ...
Added by SephirGaine on Fri, 21 Jan 2022 07:12:30 +0200
C language topics
catalogue
Figure guessing game
Print large to small numbers (a-c)
Print multiples of 3 in 1-100
Give two numbers and find the greatest common divisor of the two numbers
Print leap years (1000-2000)
Print prime numbers between 100-200
1-100 numbers with 9 directly
Calculate the value of 1 / 1 - 1 / 2 + 1 / 3 - 1 / 4 + 1 / 5... + 1 / 99 - ...
Added by mark_c on Fri, 21 Jan 2022 02:56:08 +0200
2, Data type operators and expressions
1, Data and presentation
(1) Data:
(2) Data representation:
1. Constant:
1.1. Constant concept:
1.2. Code means:
#include <stdio.h>
#define PI 3.14 / / no equal sign, no semicolon, essentially constant
int main(){
//const int
printf("%d",100);
//Line feed
printf("\n");
//Real constant
printf("%lf\n",3.14) ...
Added by phppaper on Thu, 20 Jan 2022 21:13:41 +0200
Lecture 2 of Blue Bridge Cup -- recursive [exercise]
preface
Blue Bridge Cup Official Website: Blue Bridge Cup - National College Students TMT industry competition ✨ This blog explains the algorithm knowledge involved in the Blue Bridge Cup C/C + + preparation. This blog is the second lecture: recursion [exercise]
See blog for details of [example] of recursion: Lecture 2 of Blue Bridge Cup ...
Added by forcer on Thu, 20 Jan 2022 18:54:52 +0200