[C Advanced] bit segment - enumeration - Union
catalogue
1. Bit segment
1.1. What is a bit segment
1.2. Memory allocation of bit segment
1.3 cross platform problem of location section
1.4 application of bit segment
2. Enumeration
2.1 definition of enumeration type
2.2 advantages of enumeration
2.3 use of enumeration
3. United
3.1 de ...
Added by zszucs on Wed, 26 Jan 2022 15:42:09 +0200
File class, method recursion, IO stream technology
File class
effect
The File class can create an object location File: delete, obtain the information of the text itself, and so on(
package com.itliuxue.d2_recursion;
public class RecursionDemoc03 {
public static void main(String[] args) {
System.out.println(f(1));
}
public static int f(int n){
if(n == 10){
...
Added by wescrock on Wed, 26 Jan 2022 01:24:26 +0200
Gin implements upload / download services
In this article, let's take a look at the file upload service in {Gin}.
Create project
mkdir ginupload && cd ginupload
go mod init ginupload
go get -u github.com/gin-gonic/gin
touch main.go
We create a "ginupload" directory to store code, and use "go mod" to manage dependencies.
Then, add "gin" as a th ...
Added by nemesis1931 on Sun, 23 Jan 2022 22:53:22 +0200
Solve Java util. Concurrentmodificationexception: null concurrent modification exception
I Question:
In our daily development, we may occasionally encounter operations that need to be in the loop (such as adding or modifying). If we directly use the for loop to traverse, it will lead to
Abnormal error reporting:
java.util.ConcurrentModificationException: null
Case:
In the official document, ConcurrentModificationExc ...
Added by PC Nerd on Sat, 22 Jan 2022 20:42:52 +0200
Qt network programming based on C + + -- network conference program based on IP Multicast
1, Experimental topic
Network conference program based on IP Multicast
2, Experimental purpose
Referring to the LAN IP multicast program in Appendix 3, design a network conference program with graphical interface (just realize the text multicast mode).
3, Overall design
1. Experimental principle
IP Multicast (also known as multiple access ...
Added by abitshort on Fri, 21 Jan 2022 16:11:59 +0200
1, Use of File class
catalogue
1, Concept
2, Create an instance of a class
(1) Common constructors
1. Constructor 1 (public File(String pathname))
2. Constructor 2 (public File(String parent,String child))
3. Constructor 3 (public File(File parent,String chile))
(2) Path
1. Relative path
2. Absolute path
3. Path separator
①. There are differ ...
Added by supratwinturbo on Wed, 19 Jan 2022 08:47:08 +0200
Weekly test 1 (supplementary question) problem solution
Topic 1:
Title Description
Given the length of 4 ^ sticks, if there are 3 ^ sticks in them, they can form a TRIANGLE and output ^ TRIANGLE; If they cannot form triangles, but there are 3 ^ sticks in them, they can form degenerate triangles (the sum of any two sides is greater than or equal to the third side, but not triangles), output ...
Added by ams007 on Tue, 18 Jan 2022 17:43:51 +0200
c language address book Advanced Edition
1. Personal information can be stored in the address book
Such as: name, gender, telephone number, address, etc.
2. Modify the information of the designated person;
3. Delete the information of the designated person;
4. Find the information of the designated person;
5. Add information;
What is advanced edition
The so-called advanced addr ...
Added by BIGjuevos on Tue, 18 Jan 2022 08:19:13 +0200
STM32F103 - description and function of general timer
preface
In this section, we will describe and introduce the general timer function of STM32, and also summarize STM32 (VI) and STM32 (VII)
---------------------—
catalogue
1. Introduction to general timer
2. Timer initialization function
3. PWM wave
---------------------—
I Introduction of timer
-------
1. What is a universal timer?
...
Added by McChicken on Tue, 18 Jan 2022 06:18:00 +0200
C + + multi file structure and compilation preprocessing commands (Chapter 5)
catalogue
Multi file structure and compilation preprocessing commands
General organization of C + + programs
Example 5-10 multi file project
External variable
External function
Restrict variables and functions to compilation units
Standard C + + Library
Compilation preprocessing
l #include include instruction
l #define macro definit ...
Added by cavolks on Fri, 14 Jan 2022 00:32:53 +0200