Solution of ECJTU ACM level 21 trial

Game link Note: the following order is the expected difficulty order 1. The Chinese don't lie to the Chinese tag: Escape Character Output directly. Pay attention to the escape of the character \ Reference code: #include <stdio.h> int main(){ printf("I Love ecjtuacm /\\=/\\") return 0; } C. Happy New Year tag: Reading Comprehens ...

Added by vijaykoul on Mon, 06 Dec 2021 02:57:34 +0200

Linear table -- a preliminary understanding of stack

🎆 Understand sequential stack and chain stack In the world of data structure, stack, like sequential list and linked list (linked storage structure), is a linear storage structure. Stack is a linear table (logical structure concept) with limited operation. The particularity of its operation lies in its "last in, first out" chara ...

Added by badal on Sun, 05 Dec 2021 23:56:19 +0200

Day5: application of const static, a special member, and this explicit, a friend

const: ① Data member: must be initialized with an initialization member list. wbm(string name,const int age):name(name),age(age){} ② Constant member function: 1.const is at the end                             2. You cannot use this as an interface to modify data me ...

Added by corillo181 on Sun, 05 Dec 2021 22:33:57 +0200

#C51 serial communication 5-# a string of data # interrupt timing + timeout reception + CRC verification

Catalogue of series articles Tip: you can add the directories of all articles in the series here. You need to add the directories manually For example: Tip: after writing the article, the directory can be generated automatically. For how to generate it, please refer to the help document on the right preface Introduction: 1. On the b ...

Added by marukochan on Sun, 05 Dec 2021 01:16:35 +0200

Learn c language again (IV. how to link the program)

After so much foreshadowing, this time we finally came to how the program is linked. We should see the previous sections. We can guess how the link is linked. In fact, the program link is not so difficult. Next, let's analyze a wave. Originally, I thought the program link was relatively simple. When I went to prepare, I found that I didn't und ...

Added by Cheeky Chino on Sun, 05 Dec 2021 00:00:29 +0200

[data structure] eight classic sorting (algorithm + dynamic graph + code explanation)

preface In the process of learning data structures or algorithms, we inevitably need to use sorting. The so-called sorting is to arrange the records in a certain order. The data structure mainly introduces eight common sorts. Let's learn together this time. Tip: the following is the main content of this article. The following explana ...

Added by SidewinderX on Sat, 04 Dec 2021 23:52:20 +0200

Common string function implementations~Own your own "library"

Common string function implementation! Have your own "library"! Reviewing a few commonly used strings, I think of a more interesting way to review them, which is to write these commonly used string functions by myself. Although it's common for big guys, it's a happy feeling for me to see my.h file included by #include. Today we'll s ...

Added by mikeq on Sat, 04 Dec 2021 02:44:38 +0200

cmake is used to teach the construction of multiple files in multiple directories

1. Use out of source to build multiple directories and multiple files         The file storage method here is as follows:           Where build is the build directory, that is, the build results and intermediate products are in this directory Include is the include directory src is the directory of sub functions or dep ...

Added by Alphamonkey on Fri, 03 Dec 2021 02:52:16 +0200

A snake game written in C language (windows system)

text The greedy Snake game written in C language does not use the graphical interface. It is a simple Snake displayed on the console~ It mainly uses the API functions of windows. A little explanation: 1. The system("cmd") function passes the cmd command to adjust the font color and background color of the console (of course, the fu ...

Added by Sergey Popov on Thu, 02 Dec 2021 00:46:47 +0200

Collection of recent function topics

1: Use function to approximate cosine function (15 points) This problem requires the realization of a function. Use the following formula to find the approximate value of cos(x) until the absolute value of the last term is less than e: cos(x)=x0/0!−x2/2!+x4/4!−x6/6!+⋯ Function interface definition: double funcos( double e, double x ); The ...

Added by szym9341 on Tue, 30 Nov 2021 16:40:45 +0200