C language description

1, What is C language 2, The first C language program 3, Data type 4, Variable, constant 5, String + escape character + comment 6, Select statement 7, Circular statement 8, Functions 9, Array 10, Operator 11, Common keywords 12, define defines constants and macros 13, Pointer 14, Structure 1, What is C language Computer language: ...

Posted by Thethug on Sun, 24 Oct 2021 11:05:43 +0200

2021 Liaoning college student programming competition C D E F G I L

WAWA cried,   Weak chicken picking silver for retirement Thank you for your great help from your teammates, master Fang and brother Qi 👍 CInfectious disease statisticshttps://ac.nowcoder.com/acm/contest/22352/C Title Description A Qiang came to the street. There were N people on the street, numbered 1 ∼ N. For simplicity, we see ...

Posted by darkcarnival on Sat, 23 Oct 2021 12:19:58 +0200

[key and difficult points of C language] C language pointer

Pointer is a key point in C language. The basic use of pointer understanding is not within the scope of this article. Readers can read the articles of other bloggers in the station, which are well written. This paper mainly summarizes some key points and difficulties in pointer, and the most important thing is the relationship with array 1 ...

Posted by Hexen on Sat, 23 Oct 2021 05:32:31 +0200

C language learning (dynamic memory allocation and string)

Dynamic memory allocation:   malloc function: To add header file #inclde < stdlib. H >Format: void*malloc (size_t size);The size of the space requested from malloc is in bytesThe returned result is void, which requires type transformation         For example, a = (int *) malloc (variable or number * number); #inc ...

Posted by dazraf on Sat, 23 Oct 2021 04:20:54 +0200

[C/C + + design pattern] Template Method

COF-23 pattern classification For the purpose: Creation mode: delay the creation of some objects to subclasses or other objects, so as to deal with the impact caused by the specific type implementation when the requirements change to object creation.Structural pattern: obtain a more flexible structure through class inheritance or object combi ...

Posted by jwalsh on Fri, 22 Oct 2021 09:05:23 +0200

C language uses stm32 minimum development board to light up the running light

catalogue 1, Experimental preparation 2, Find address 3, Programming 1. Open keil5 to create a project selection chip (stm32F103c8 I use here)   2. Set chip parameters 3. Add function file 4. Write code   5. Compile and generate hex file 4, Burning and achievements 1. Connection 2. Start the burning procedure   3. E ...

Posted by Kinsbane on Thu, 21 Oct 2021 16:31:55 +0200

C language beginner

Key points of this chapter: Why should we learn c language What is? C language first C Language program data type Variable, constant character string+Escape character+notes Select statement Circular statement 1. Why should we learn c language? C produces all things The foundation of programming The first choice for long-te ...

Posted by itandme on Thu, 21 Oct 2021 05:29:35 +0200

First knowledge of c language 02

catalogue 6 selection statement 7 circular statement 8 function 9 array 10 operator arithmetic operator Shift operators Shift operators Bitwise operators Assignment operator unary operator Logical operator Relational operator Logical operator Conditional Operator comma expression Subscript references, function calls, and ...

Posted by wmac on Wed, 20 Oct 2021 06:33:56 +0200

C programming (Fifth Edition) written by Tan Haoqiang Chapter II answers and explanations (including the original code)

Chapter 2 algorithm - the soul of program First question 1. What is an algorithm? Try to find three examples from daily life to describe their algorithms Algorithm: algorithm is the method and specific steps to solve a problem. Example: 1. CET-4: accumulate words first, then brush questions, and go to the examination room. 2. Makin ...

Posted by Ohio Guy on Tue, 19 Oct 2021 20:54:21 +0200

Traffic light design program based on AT89C52 single chip microcomputer

preface This design mainly introduces the single chip microcomputer program design idea and circuit design of intersection traffic lights circuit design Generally speaking, the circuit design of traffic lights is relatively simple. It mainly depends on whether the designer wants to realize more functional intelligent traffic lights. If it is si ...

Posted by sagee on Tue, 19 Oct 2021 09:54:32 +0200