[Golang program flow control]
1, Introduction to program flow control
Sequential controlBranch controlCycle control
2, Sequential control
1) Connotation 2) Flow chart 3) Note = = the definition variable adopts legal forward reference
3, Branch control
1. Basic introduction of branch control
Single branchDouble branchMulti branch
2. Single branch control ...
Posted by CarbonCopy on Sun, 06 Feb 2022 08:46:05 +0100
Drill down on classes and objects
Hello, everyone! I'm Xiao Sheng! The teacher of the training class inspected the foundation a few days ago and found that there are still many loopholes. I want to further learn the foundation of Java, so I followed Mr. Han to learn Java. Here are my notes
Brief introduction to the distribution of IDEA development tools
package
Th ...
Posted by kickoutbettman on Sun, 06 Feb 2022 08:34:51 +0100
Java summary 6: Object Oriented Programming
⭐ Classes and objects ⭐ ️
📚 First, let's look at a cat problem
Mrs. Zhang has two cats: one is Xiaobai, 3 years old, white. There is also a flower named Xiaohua, 10 years old, color. Please write a program to display the name, age and color of the kitten when the user enters the name of the kitten. If the kitten name entered by the user ...
Posted by Poolie on Sun, 06 Feb 2022 08:05:07 +0100
c + + ~ Lesson 8: virtual functions and polymorphism
catalogue
Virtual function and virtual function table
Virtual function and polymorphism
Pure virtual function and ADT
virtual destructor
override and final
c + + type conversion
Virtual function and virtual function table
What is a virtual function? Member functions modified with virtual are called virtual functionsThe influence of ...
Posted by WiseGuy on Sun, 06 Feb 2022 05:35:31 +0100
New features of experimental Go generics
New features of experimental Go generics:
I Prerequisite: run the following two lines of commands to download the go compilation environment that supports running generics.
go get golang.org/dl/go1.18beta1@latest
// Download go1 18beta1 executable file to the bin directory of go configuration
go1.18beta1 download
// Check whether the download ...
Posted by dillonit on Sun, 06 Feb 2022 03:54:04 +0100
Basic use of C + + Standard Thread Library
Qt has more thread classes with high encapsulation. It is found that the thread library in the C + + standard library is a little rusty. Here is a summary of the thread related content in the C + + standard library for your reference. In fact, the standard C + + thread library is also very useful.
1. Create thread to execute asynchronously
We ...
Posted by ambrennan on Sun, 06 Feb 2022 03:14:40 +0100
[C + +] backtracking method uses reference passing, lambda expression, vector Back() use
1219. Gold miners You want to develop a gold mine. Geological surveyors have identified the distribution of resources in the gold mine and marked it with a grid of size m * n. The integer in each cell represents the amount of gold in this cell; If the cell is empty, it is 0.
In order to maximize profits, miners need to mine gold according to t ...
Posted by Jyotsna on Sat, 05 Feb 2022 19:31:11 +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
Python learning notes
About design mode (II)
(it also includes the knowledge content of modules and packages)
Read the picture file and copy the file
with open('Picture name','rb') as f: #b is binary
with open('New file name','wb') as w:
for line in f.readlines():
w.write(line)
print('Picture copy complete')
pickle serialization and des ...
Posted by henryhund on Sat, 05 Feb 2022 18:44:03 +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