Preparing for the Blue Bridge Cup -- actual combat of the embedded provincial competition of the 9th Blue Bridge Cup

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

Experiment 12_ 1_ First understanding ASCII code file

Title Description 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&quot ...

Posted by NFD on Mon, 07 Mar 2022 23:51:19 +0100

0 basic society simple QQ version chat dialogue function (with complete implementation code)

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

Guessing games based on C language (with source code)_* Blog with the wind of the past*

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 preface 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

The fourth class of C language

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. struct student { };//Semicolon required struct student { char s_id[10 ...

Posted by miniramen on Mon, 07 Mar 2022 19:14:12 +0100

Advanced dynamic memory management of C language

Key points of this chapter Why does dynamic memory allocation existIntroduction to dynamic memory function         malloc         free         calloc         realloc 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

C Language Programming Fifth Edition Tan Haoqiang's Postclass Answers Chapter VII Exercise Answers

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

Advanced structure

catalogue 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 of C language, sorting data and library function, use and Simulation of qsort function Bubble algorithm for data sorting Article catalogue Bubble algorithm sorting integer arrayThe use of c language library function qsortAnalog implementation of qsort function 1, Bubble algorithm sorting integer data 1. ...

Posted by joe_C_nice on Sun, 06 Mar 2022 12:56:28 +0100

Use C/C + + to read and write mat file (Clion)

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