Relationship between const and reference.

1. Special Use of References 1 Basic Review int main() { int a = 10; const int b = 20; //For integer a int &c1 = a; const int &c2 = a; a = 2000; //You can modify the value of c2 through a cout <<" a = "<< a << endl; cout <<" c1 = "<<c1 << endl; cout << ...

Added by DrTom on Wed, 19 Jan 2022 07:15:13 +0200

Python Turtle small project 8 drawing of various notes

This time, we will continue to draw with the Turtle module. Next, we will teach how to draw various notes     A quarter note effect: Code explanation: 1. Import module from turtle import *  2. set a property pensize(4) 3. Draw a circle begin_fill() circle(40,450) end_fill() 4. Draw line segments fd(180) 5. Hide the brush ...

Added by victordb on Wed, 19 Jan 2022 06:51:18 +0200

Learning String Syntax (Python part)

1. String definition String is the most commonly used data type in Python. We can use quotation marks ('or ') to create strings. Creating a string is as simple as assigning a value to a variable. For example: var1 = 'Hello World!' var2 = "Python Runoob" 2. Access the value in the string Python does not support single character type, ...

Added by PHPiSean on Wed, 19 Jan 2022 04:18:32 +0200

[chapter 06 multithreading] the highlight of Java language

❤ Write in front ❤ Blog home page: Hard working Naruto ❤ Series column: Java basic learning 😋 ❤ Welcome, friends, praise 👍 follow 🔎 Collection 🍔 Learning together! ❤ If there are mistakes, please correct them! 🌹 🔥 Series portal: [chapter 05 Java exception handling] a short article teaches you to play with Java exception handling [hot l ...

Added by bradymills on Wed, 19 Jan 2022 03:03:38 +0200

Management of java Concurrent Programming sharing model 1

preface This series of materials is based on the video of dark horse: java Concurrent Programming I haven't finished watching it yet. On the whole, this is the best concurrent programming video I've ever seen. Here are the notes based on the video. 1. java Memory Model This part is based on the book "the art of java Concurrent P ...

Added by bonekrusher on Wed, 19 Jan 2022 01:37:59 +0200

Java object-oriented interface

Tip: the following is the main content of this article, and the Java series learning will be continuously updated (1) Basic concepts    an interface is a class that is more abstract than an abstract class. It can be regarded as a special abstract class. There are only global constants and abstract methods in the class body ...

Added by mendoz on Wed, 19 Jan 2022 00:17:07 +0200

Get to know JVM (take you to know JVM from different perspectives)

summary When it comes to the three letters of JVM, what first pops out of your mind? I generally analyze the following three kinds of people: The first one: I know the three letters of JVM separately. I don't know what it isSecond: isn't it a Java virtual machine that runs Java programsThe third kind: it is divided into heap memory, method ...

Added by TNIDBMNG on Wed, 19 Jan 2022 00:10:02 +0200

The of Java graphical interface programming -- Swing

1. Swing overview Swing is implemented in 100% pure Java and no longer depends on the GUI of the local platform, so it can maintain the same interface appearance on all platforms. Swing components that are independent of the local platform are called lightweight components, while components that depend on the local platform are called heavywei ...

Added by Fazer on Tue, 18 Jan 2022 22:14:04 +0200

2022-1-14 Niuke C + + Project -- exec function family learning

Questions for review: 1. What is a function family? 2. What is the function of exec function family? 3. What will happen if exec is used in the parent process function? What better way? 4. execl function, execlp function Function families are functions with the same or similar functions. Because there is no function overload in C language, fun ...

Added by burhankhan on Tue, 18 Jan 2022 20:37:17 +0200

Java series notes 16 - Reflection

reflex Class loader When the program wants to use a class, if the class has not been loaded into memory, the system will initialize the class through three steps: class loading, class connection and class initialization. If there are no accidents, the JVM will complete three steps in succession, so sometimes these three steps are collectively ...

Added by fuzz01 on Tue, 18 Jan 2022 17:58:54 +0200