Catalogue of series articles
Preparing for the Blue Bridge Cup (3) -- actual combat of the embedded provincial competition of the 8th Blue Bridge Cup Preparing for the Blue Bridge Cup (2) -- actual combat of the embedded provincial competition of the seventh Blue Bridge Cup Preparing for the Blue Bridge Cup (1) -- actual combat of the embedded ...
Posted by brmcdani on Tue, 08 Mar 2022 13:11:16 +0100
An ASCII code file is known. The file name is dict.dic. The file only contains the characters in the ASCII code, which can correspond to the integer 0-127. We divide the characters in ASCII code into four categories. The first category is uppercase letter "A-Z", the second category is lowercase letter "A-Z" ...
Today we will use the famous pipe mkfifo to realize a simple version of QQ dialogue function.
Step 1: first create two processes Talka C and talkb c；
Step 2: talk a C and talkb C is responsible for checking whether two pipelines have been created. If not, it is necessary to create pipelines;
Step 3: talk a C open pipe 1 in a write only mann ...
Posted by Hannes2k on Mon, 07 Mar 2022 22:40:26 +0100
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
A simple guessing game based on C language aims to get familiar with the random number functions, method calls and the application of modular code in C language.
1, Rules of th ...
Posted by jd307 on Mon, 07 Mar 2022 21:59:01 +0100
Key points of the fourth course of C language
(1) : review pointer size: the pointer size can only be 4 bytes (32b) in x86 and 8 bytes (64b) in x64. Because the pointer stores the first address.
(2) struct: a new type is designed and designed by the program developer.
char s_id[10 ...
Posted by miniramen on Mon, 07 Mar 2022 19:14:12 +0100
Key points of this chapter
Why does dynamic memory allocation existIntroduction to dynamic memory function
Common dynamic memory errorsSeveral classic written test questionsFlexible array
Foreword: the header files of these four dynamic memory functions are declared in stdlib H me ...
Posted by shadow-x on Mon, 07 Mar 2022 14:05:41 +0100
1. Write two functions to find the maximum common divisor and the minimum common multiple of two integers respectively. Call the two functions with the main function and output the results. Two integers are entered by the keyboard.
Interpretation: This topic mainly examines two kinds of knowledge:
Rolling-and-rolling division: divide small va ...
Posted by therealchuckles on Sun, 06 Mar 2022 18:34:09 +0100
1. Basic knowledgeDeclaration of structure
2. Structure self reference
3. Initialization of structure
4. Structure memory alignment
5. Modify the default alignment number
1. Basic knowledge
The values of some variables with different structures can be members of different types.
Declaration of structure
struct tag//tag can ...
Posted by YOUAREtehSCENE on Sun, 06 Mar 2022 17:17:27 +0100
Bubble algorithm of C language, sorting data and library function, use and Simulation of qsort function Bubble algorithm for data sorting
Bubble algorithm sorting integer arrayThe use of c language library function qsortAnalog implementation of qsort function
1, Bubble algorithm sorting integer data
Posted by joe_C_nice on Sun, 06 Mar 2022 12:56:28 +0100
Use C/C + + to read and write mat file (Clion)
Recently, I need to use C + + to process the data generated by matlab. I refer to some online blogs, but they all use VS. I prefer to use Clion. I also encountered some pits in the process of configuration. Please record.
1, Create project and add test code
Let's not talk about creating a proje ...
Posted by rpmorrow on Sun, 06 Mar 2022 11:39:17 +0100