[miscellaneous] detailed explanation of Uncrustify configuration of C & C + + beautification tool

Detailed explanation of Uncrustify configuration of C & C + + beautification tool catalog: 1: Overview 2: Download 3: Installation 0: update Journal 2022 / 2 / 5 update: Chapter 3.3: use. Later, other usage methods will be updated and various ides may be used to use Uncrustify. 1: Overview Due to the use of IDEA and pycharm in sc ...

Posted by emceej on Sat, 05 Feb 2022 07:05:05 +0100

C language digital programming problems

catalogue Three digit composition Narcissistic number Fibonacci sequence Prime number Isomorphic number Greatest common divisor Completion Three digit composition Title: write a program to output all three digits that meet the following requirements Condition: it consists of four arrays: 1, 2, 3 and 4 A three digit numb ...

Posted by davinci on Sat, 05 Feb 2022 05:52:42 +0100

C Language Pointer Learning

1. References to strings In C language programs, strings are stored in character arrays. To reference a string, you can use the following two methods (1) Store a string in an array of characters, either by referencing one of the characters in the string with the array name and subscript, or by declaring the'%s'output string with the array nam ...

Posted by spiritssight on Fri, 04 Feb 2022 18:35:43 +0100

Introduction and code demonstration of STC89C52 single chip microcomputer LCD1602 display screen

catalogue Introduction to LCD1602 display screen Pin introduction Internal structure block diagram Memory DDRAM memory address Addresses of CGRAM and {CGROM Timing introduction LCD1602 shortcut command LCD1602 instruction operation flow: Display of characters and strings Various hexadecimal digital display Display decimal digits on ...

Posted by robert_gsfame on Fri, 04 Feb 2022 09:48:52 +0100

Latent C language - primary pointer

Pointer: Pointer is an object in the programming language. Using the address, its value directly points to the value stored in another place in the computer memory. Because the required variable unit can be found through the address, and the address points to the variable unit, the address is visualized as "pointer", which means that ...

Posted by cac818 on Fri, 04 Feb 2022 02:37:43 +0100

Port multiplexing SO_REUSEADDR

Port reuse is a classic problem in network programming, and the knowledge points in it are very cumbersome. This paper briefly introduces so through the code_ Reuseaddr, but so will not be involved_ REUSEPORT. For a long time, we all know that we can't listen to the same port. For example, the following code. server1.listen(8080); server2.li ...

Posted by davanderbilt on Thu, 03 Feb 2022 22:44:02 +0100

Third party library cJson for C/C + + json parsing and synthesis

We often use JSON format data for communication in our projects. In particular, we need to implement it on the ARM development board. It is troublesome to process JSON and tear the data by ourselves, but now we have a third-party library! That's cJson! Environmental preparation cJson official library: https://github.com/DaveGamble/cJSONht ...

Posted by neh on Thu, 03 Feb 2022 19:48:49 +0100

C Primer Plus Chapter 4 (Strings and Formatted Input and Output)

1. Introduction to strings Array of type 1.1 char and null character C does not have a variable type dedicated to string storage, and strings are stored in arrays of type charArrays consist of contiguous storage units, where characters in strings are stored in adjacent storage units, one character per unit abc\0Each storage unit 1 byteEm ...

Posted by turbocueca on Thu, 03 Feb 2022 18:38:19 +0100

C language file operation

preface When we haven't learned file operation and write code like address book, the original data will be destroyed every time we run it. It will require a lot of physical labor next time. If we learn file operation management, it won't be so troublesome! 1, What is a file Files on disk are files. But in programming, we generally talk a ...

Posted by stuartshields on Thu, 03 Feb 2022 15:22:45 +0100

C language minesweeping games

I Rules of the game Eliminate all the grids that are not bombs on a 9x9 small chessboard. If you step on one of the 10 mines, the game ends. If you don't step on it, judge the location of the surrounding 3x3 grid mines according to the information on the stepped grid until there are 10 mines left. II Basic logic 1. Print menu 2. Initi ...

Posted by Brenden Frank on Thu, 03 Feb 2022 13:08:32 +0100