Program design - school sorting - 01 car club management system

1, Subject content and requirements 1. Problem description With the improvement of modern living standards, household cars have increasingly become a necessity in life. Learn about riders' information to facilitate communication and organize activities among riders. The system requires the development of a riders Club software, which can ...

Added by Lexi on Tue, 04 Jan 2022 04:02:41 +0200

Liu Rujia - purple book chapter 7

7.1 simple enumeration In fact, when simple enumeration can pass, don't think of the situation as so complex. 1.Example 7-1 division (UVA 725) #include<cstdio> #include<set> using namespace std; set<int> cnt; int N; int flag; void solve() { int m = 98765 / N, j; for(int i = 1234; i <= m; i++){ cnt.clear() ...

Added by Crazy-D on Tue, 04 Jan 2022 02:09:00 +0200

Spent a few days sorting out the C language knowledge points in STM32. Beginners must watch the old bird review

A junior partner of SCM asked me to recommend C language books. Because the basis of C language is relatively poor, I want to learn C language again and learn SCM again. I had this idea when I first learned SCM before. In fact, C language can be learned while learning MCU. In some routines of learning MCU, if you encounter C language knowledg ...

Added by cubik on Tue, 04 Jan 2022 01:28:13 +0200

ZZUIL problem solution 1041-1050 (C language version)

If you have any questions, please comment below 1041: sequence summation 2 1042: sequence summation 3 1043: maximum 1044: failure rate 1045: numerical statistics 1046: product of odd numbers 1047: logarithm table 1048: logarithm table 1049: sum of squares and sum of cubes 1050: cumulative sum of factorials 1041: sequence summation 2 Enter an i ...

Added by bloodgoat on Mon, 03 Jan 2022 22:38:11 +0200

Operator details

Main contents of this chapter: Introduction to various operators.Expression evaluation Operator 1. Arithmetic operator +-*/ For the division sign (/) operator, both sides are integers, and integer division is performed; Floating point division is performed only if there is a floating point number on both sides. #include <stdio.h> ...

Added by shawnyoung on Mon, 03 Jan 2022 19:06:25 +0200

Dynamic memory management, file operation, preprocessing

Last Dynamic memory management Apply for memory by creating variables When memory is released depends on what kind of variable the variable is If it is a global variable, it will be released following the program If it is a static variable, it is also released with the program If it is a local variable, it is released following the code bl ...

Added by chaking on Mon, 03 Jan 2022 18:45:10 +0200

Data structure - simulate queue with Stack & simulate stack with queue

Two stacks S1 and S2 are used to simulate a queue. Two stacks S1 and S2 are used to simulate a queue. When an element needs to be inserted into the queue, S1 is used to store the input element, that is, S1 performs the stack operation. When it is necessary to get out of the queue, the stack operation is performed on S2. Since the order of t ...

Added by a2bardeals on Mon, 03 Jan 2022 17:18:15 +0200

MSP430F5529 DriverLib library function learning note comparator B Comp_B

Platform: Code Composer Studio 10.3.1 MSP430F5529 LaunchPad™ Development Kit (MSP‑EXP430F5529LP) Hard knowledge Introduction to comparator B The comparator B module contains the comparison function of up to 16 channels and has the following characteristics:  inverting and in-phase input multiplexers;  comparator output programmable ...

Added by djmc48 on Mon, 03 Jan 2022 15:07:15 +0200

Circular Queue

1, Define queue_ Data type of T #define QUEUESIZE 1000 typedef struct Queue { u8 queue[QUEUESIZE]; int queue_read; int queue_write; enum { no_read = 0, //No read operation was performed reading, //Performing read operation reread, //The read pointer has been overridden } queue_mark; } Queue_t; Queue is the array storing the ci ...

Added by laurus on Mon, 03 Jan 2022 13:21:39 +0200

Operation of standard C library on files

Operation of standard C library on files 1, Overview: open in Linux file programming is the system call function of UNIX system (including Linux, Mac, etc.), and returns the File Descriptor. It is the index of the file in the File Descriptor table, which is different from the C language library function fopen. Fopen is a C language library fun ...

Added by zarp on Mon, 03 Jan 2022 13:10:29 +0200