C language: deep understanding of character functions and string functions

References for this article are from cplusplus: cplusplus.com - The C++ Resources Networkhttp://www.cplusplus.com/ ย  catalogue 1, strstr string lookup 2, strtok string extraction 3, strerror error message report 4, Character classification function 5, memcpy memory copy 6, memmove memory copy 7, memcmp memory comparison 8, memset mem ...

Posted by KMC1499 on Sat, 12 Feb 2022 14:40:24 +0100

C language series - Section 2 - branch and loop statements

1. Branch statement if switch 2. Circular statement while for do while 3.goto statement What is a statement? C statements can be divided into the following five categories: Expression statementFunction call statementControl statement (introduced in this chapter)Compound statementEmpty statement Control statements are used to con ...

Posted by vbcoach on Sat, 12 Feb 2022 13:42:41 +0100

C language srand does not require replay srand should not be placed in a loop as a pseudo-random function rand

Initial contact rand() function _I learned three sort algorithms before: 1. Select Sort; 2. Bubble sort; 3. Insert sort; Sort the elements in the array using three algorithms. At first, the array was initialized with 0 ~ n ascending order, then descending order to n ~ 0, which was almost meaningful. To show "authenticity", we dec ...

Posted by Duey on Sat, 12 Feb 2022 05:31:36 +0100

OpenSSL3.0 learning 18 provider - signature CSDN creation punch in

๐Ÿ“’ Blog home page: Actor's blog ๐ŸŽ‰ Welcome to pay attention ๐Ÿ”Ž give the thumbs-up ๐Ÿ‘ Collection โญ Leave a message ๐Ÿ“ โค๏ธ Look forward to communicating together! ๐Ÿ™ The author's level is very limited. If you find an error, please let me know. Thank you! ๐ŸŒบ If you have any questions, you can communicate by private letter!!! ๐ŸŒบ outline # ...

Posted by Grunge on Sat, 12 Feb 2022 00:39:42 +0100

Roommate taught me quick sort (C)

1. Sorting principle Quick sort is an exchange sort method of binary tree structure proposed by Hoare in 1962. Its basic idea is: any element in the element sequence to be sorted is taken as the reference value, and the set to be sorted is divided into two subsequences according to the sort code. All elements in the left subsequence are less t ...

Posted by munsiem on Fri, 11 Feb 2022 22:21:46 +0100

First knowledge of C language

catalogue Constant and Variable variable Location of variables Scope life cycle constant โ‘  Literal constant โ‘ก const modified constant โ‘ข #define defined identifier constant โ‘ฃ Enumeration constant String type ASCII code table Escape character Constant and Variable variable Variables can be divided into local variables and glo ...

Posted by Ludo Lambrechts on Fri, 11 Feb 2022 20:08:38 +0100

C language - initial order of pointer and structure

catalogue ย  ๐ŸŒฒ Pointer ๐ŸŒผ What is a pointer ๐ŸŒผ Field pointer ๐ŸŒฑ Several cases of wild pointer ๐ŸŒฑ How to avoid wild pointer? ๐ŸŒผ Pointer operation ๐ŸŒผ Different representations of pointers ๐ŸŒฒ structural morphology ๐ŸŒผ Definition of structure ๐ŸŒผ Assignment of structure ๐ŸŒผ Access to structure members ๐ŸŒฑ Dot operator ย ย  ๐ŸŒฑ-> ...

Posted by richardwarren on Fri, 11 Feb 2022 07:24:30 +0100

Snake games (C language)

Write before: Greedy snake, I believe everyone has played it. After learning the C language, I also want to write a greedy Snake game myself. Then I checked some materials. Finally, based on a video of station B, I added my own thinking, design and improvement, and created my own greedy Snake game, which I share with you here. (original vide ...

Posted by Motionographer on Thu, 10 Feb 2022 21:45:00 +0100

acwing game 24

acwing game 24 This week's competition has three topics: simulation, enumeration and simulation acwing 4070. XOR Link: 4070. XOR - AcWing question bank Title Description Problem solving ideas Very simple simulation, record the maximum value and the last input when entering, and don't even open the array code #include<iostream> ...

Posted by gonsman on Thu, 10 Feb 2022 16:50:50 +0100

C language Yang Hui triangle - completed independently

Author:beiyanyunyi A confident man majoring in software engineering Not so many people are diligent, but you don't act and fear others. CSDN:weixin_62688213 preface We transform Yang Hui's triangle into an image similar to the mathematical coordinate system. In this way, you can take the array to save the data. 1, Initialize 1. Heade ...

Posted by ldoozer on Thu, 10 Feb 2022 10:22:41 +0100