C Primer Plus learning Day1
Chapter 2 overview of C language
github: https://github.com/xiaochao200/C-Primer-Plus/tree/main/Day1
2.1 simple C program example
Procedure listing 2.1 first c
#include <stdio.h>
int main(void)
{
int num;
num = 1;
printf("I'm a simple ");
printf("computer\n");
printf("My favorite number is %d because it is first.\n", num); ...
Added by Txtlocal on Mon, 10 Jan 2022 13:39:02 +0200
Winter vacation practice of freshman last semester
A - identical test
The teacher hates it when someone plagiarizes in the exam. Since the electronic marking, it is much easier for teachers to find the same papers. As long as they input the answers of two people into the computer, compare them character by character, and find out the same positions at a glance.
Input format
22 lines, each li ...
Added by Jurge on Mon, 10 Jan 2022 13:12:20 +0200
Expert PID (implemented in C language)
1, Principle of expert PID
Expert PID control mainly uses the knowledge of controlled object and control law to control. For the controlled object, there is no need for accurate model, and expert experience is used to design and control the system model. For the control of system model, expert PID has flexibility, adaptability and robustness. ...
Added by py343 on Mon, 10 Jan 2022 01:06:52 +0200
Introduction to dynamic memory functions (malloc, free, calloc, realloc)
Some recent knowledge is shared ~ as follows:
Stack area usually stores: local variables, parameters, and static space.The space requested by malloc, free, calloc and realloc is usually placed in the heap.Static declarations are usually placed in static storage.
The following describes several dynamic memory functions:
1.malloc function and f ...
Added by johnc71 on Sun, 09 Jan 2022 15:11:56 +0200
Simple restaurant ordering system written in c language (with background)
This should be a relatively simple c language program. Because the school c language class ended early, I learned the structure pointer at that time, so I applied all the knowledge points I could use at that time to this program. Although this program was the ceiling for me at that time, when I continued to study, I gradually found that there w ...
Added by ialsoagree on Sun, 09 Jan 2022 11:05:10 +0200
RSA encryption and decryption using C language based on openssl Library under MacOS
RSA encryption and decryption using C language based on openssl Library under MacOS
1 install openssl and generate the key
First of all, of course, you should install OpenSSL (remember to look at the installation path here, which should be / usr / local / cell)/ openssl@3 Like):
brew install openssl
After installation:
cd /usr/local/inclu ...
Added by shapiro125 on Sun, 09 Jan 2022 10:45:43 +0200
Data structure - stack and stack application (recursion, four arithmetic expressions) (Java, C language)
Today, let's learn about the application of stack and stack, and learn the application of stack in recursive algorithm and four arithmetic expressions
1, Definition of stack
Everyone should have encountered an exception called "stack overflow" when writing a program. What are the similarities and differences between this stack and t ...
Added by joecrack on Sun, 09 Jan 2022 07:54:43 +0200
HENAU string theme
Item A similarity detection
B - initial capital
C case conversion
D digital inversion
E - delete word suffix
F - judge whether the string is palindrome
G - basic data structure - stack (1)
H - dictionary order
I - verify substring
J - substring lookup
K - cut cloth strip
L - longest palindrome substring
Item A similarity detection
...
Added by DaRkZeAlOt on Sun, 09 Jan 2022 06:22:43 +0200
[PAT (Basic Level) Practice] - [find element] 1028
I. [Topic difficulty]
Class B
II. [Title No.]
1028 census (20 points)
III. [Title Description]
A census was conducted in a town and the birthdays of all residents were obtained. Now please write a program to find out the oldest and youngest people in the town.Here, ensure that each entered date is legal, but not necessarily reasonable ...
Added by phprocker on Sat, 08 Jan 2022 11:17:34 +0200
Data structure - linear list - linked storage structure, static linked list (Java, C language)
This article follows the previous article. We learned about the sequential storage structure of linear tables. In this article, we learn about the chain storage structure of linear tables and compare the advantages and disadvantages of the two storage structures.
1, Lack of sequential storage structure
Although the sequential storage struc ...
Added by Static_Nexus on Sat, 08 Jan 2022 11:02:40 +0200