Conquer custom types of C language: structure, enumeration, union
catalogue
Key points of this chapter
1. Structure
1.1 basic knowledge of structure
1.2 declaration of structure
1.3 special declaration
1.4 self reference of structure
1.5 definition and initialization of structure variables
1.6 structure memory alignment
1.7 modify the default alignment number
1.8 structural transmission parameters
...
Posted by CtrlAltDel on Tue, 08 Feb 2022 06:25:51 +0100
C language file operation
6 C language file operation
6.1 documents
what is a document? In short, a file is something used to store data. The file we refer to refers to the file saved in the disk. Of course, the file can also be saved in the optical disk, U SB flash disk and other devices 1.
Using files has the following benefits:
(1) It can save data ...
Posted by pedro_silva on Mon, 07 Feb 2022 13:37:15 +0100
M's C memo - branch and loop statements
catalogue
1. What is a statement?
2. Branch statement (select structure)
2.1 if statement
2.2. switch statement
2.2.1 break in switch statement
2.2.2ddefault clause
3. Circular statement
3.1. while cycle
3.1.1 break and continue in while
3.2 for cycle
3.2.1 grammar
3.2.2. break and continue in the for loop
3.2.3 loop control vari ...
Posted by phence on Mon, 07 Feb 2022 12:15:38 +0100
Four memory areas (code area, global area, heap area and stack area)
During the execution of C + + program, the memory is divided into four areas
·Code area: the binary code that stores the function body and is managed by the operating system.
·Global area: store global variables, static variables and constants
·Stack area: it is automatically allocated and released by the compiler to s ...
Posted by gaugeboson on Mon, 07 Feb 2022 07:03:40 +0100
C language to achieve three word chess ~ step explanation and code
What is Sanzi?
Sanzi chess is a very ancient folk traditional game, which is also very convenient to play. Sanzi chess is also called OOXX chess, Jingzi chess, etc. it is divided into 3 with the word "Jingzi" × In the grid of 3, both sides take turns to lay chess pieces (which can be distinguished by O or X). As long a ...
Posted by samsbox on Sun, 06 Feb 2022 19:20:56 +0100
OpenSSL3.0 learning 12 provider cipher CSDN creation punch in
📒 Blog home page: Actor's blog 🎉 Welcome to pay attention 🔎 give the thumbs-up 👍 Collection ⭐ Leave a message 📝 ❤️ Look forward to communicating together! 🙏 The author's level is very limited. If you find an error, please let me know. Thank you! 🌺 If you have any questions, you can communicate by private letter!!!
🌵 outline
# ...
Posted by muralimohan001 on Sat, 05 Feb 2022 22:06:19 +0100
C address book < Basic Edition >
catalogue
1. Basic requirements
2. Function analysis of address book
(1) Menu implementation
(2) Initialization function
(3) Add contacts and print
(4) Delete specified contact
(5) Find and print the specified contact
(6) Modify designee information
(7) Print all information
(8) Sort address book inform ...
Posted by cottonbuds2005 on Sat, 05 Feb 2022 19:01:59 +0100
LLVM full LTO Learning Notes
What is LTO (omitted)
What are LLVM LTO Objects?
Use Example of link time optimization An example of this is shown below.
--- a.h ---
extern int foo1(void);
extern void foo2(void);
extern void foo4(void);
--- a.c ---
#include "a.h"
static signed int i = 0;
void foo2(void) {
i = -1;
}
static int foo3() {
foo4();
return 10;
}
int fo ...
Posted by HockeyDevil07 on Sat, 05 Feb 2022 18:16:13 +0100
[C language] branch statement and loop statement
catalogue
1, Branch statement
1. if statement
Grammar
Examples
2. switch statement
grammar
example
2, Circular statement
1. while loop
grammar
example
getchar(),putchar()
2. for loop
grammar
example
3. do... while() loop
grammar
example
1, Branch statement
1. if statement
0 means false, non-0 means trueIf the result of ...
Posted by Yamakazi on Sat, 05 Feb 2022 12:53:45 +0100
C language linked list 1
1. Introduction of linked list
1.1 defects of array (1) Array has two defects: all element types in an array must be the same; The number of elements in the array must be specified in advance and cannot be changed once it is specified (2) Solution to array defects: the first defect is solved by the structure, which allows different types of el ...
Posted by izzy on Sat, 05 Feb 2022 11:37:43 +0100