C + + combat notes

Smart pointer unique_ptr unique_ptr is one of the simplest and easiest to use smart pointers. When declaring, you must specify the type with template parameters, for example: unique_ptr<int> ptr1(new int(10)); //int smart pointer assert(*ptr1 = 10); // Use * to get content assert(ptr1 != nullptr); //You can determine whether it is a ...

Added by timj on Wed, 23 Feb 2022 17:20:29 +0200

Penetration test of CFS three-layer target Intranet

1, Environment construction: Target topology:   1. Add virtual network card: Add network cards for network segments 22 (VMnet2) and 33(VMnet3) VMnet8 communicates with the outside in NAT mode 2. Configure network card: target1 network configuration: target2 network configuration: target3 network configuration:  3.web ...

Added by Syto on Wed, 23 Feb 2022 17:01:34 +0200

Dynamic pointer clock: use pyqt5 to make pointer clock to display real-time time time

[read the full text] At the end of the paper, a complete source code implementation process is attached Want to realize such a function, and then pyqt5 there is no ready-made component to use, so I think it can only be realized by drawing. When it comes to drawing, the turtle framework is undoubtedly the most common choice, but it can also ...

Added by falled on Wed, 23 Feb 2022 16:59:23 +0200

Object oriented foundation of Java

Object oriented programming, as the name suggests, you have to have an object first; With the object, you can interact with the object; It is a programming method that maps the real world to the computer model by means of objects. catalogue 1, Method 2, Construction method 3, Method overloading 4, Inherit 5, Polymorp ...

Added by JeanieTallis on Wed, 23 Feb 2022 16:49:56 +0200

[springboot annotation container] @ Bean

@Bean The @ Configuration annotation mentioned earlier is equivalent to turning a class into spring Configuration xml, how to inject beans with Configuration files? This requires the annotation @ Bean, which is used for methods. Adding @ Bean to a method is equivalent to adding a < Bean > tag to xml. Let's take a look at an example first ...

Added by gutogouveia on Wed, 23 Feb 2022 16:50:50 +0200

Two methods: building neural network eight strand six step method

The difference between the two methods: Sequential network building method. The upper output is the Sequential network structure of the lower input, but it is impossible to write some non Sequential network structures with hops. At this time, we can choose to use class to build a neural network structure, and class can be used to encapsulate a ...

Added by nepton on Wed, 23 Feb 2022 16:42:38 +0200

python closures and decorators

python closures and decorators 1, What is a closure? 1. Scope of function First of all, let's understand the scope of a variable in python. python has its namespace for each variable. A function can only call the global global variable or its own local variable. With this in mind, what is a closure. 2. What is a closure? Simply put, a ...

Added by alapimba on Wed, 23 Feb 2022 16:31:02 +0200

Java development Snake games

@[TOP](Greedy Snake) Java development Snake games 1, Development ideas Set a certain size and immutable game window Draw the basic panel style of the game on the created window Draw a static snake using the saved material icon in advance Enable the snake to move; In fact, only the snake head coordinates need to move, and each body sectio ...

Added by sastro on Wed, 23 Feb 2022 16:27:09 +0200

[basic Python tutorial] program flow control statements in Python

preface This blog will talk about the flow control statements in Python language. In high school, we have learned program flow problems in mathematics. To achieve a goal, we often need to go step by step from the beginning, sometimes in sequence, sometimes in choice, and sometimes in cycle. Circulation and selection control the whole pro ...

Added by Jeff4507 on Wed, 23 Feb 2022 16:25:29 +0200

JAVA learning DAY3 - instance operation

Methods of finding prime numbers First of all, understand what prime numbers are: numbers that cannot be divided by whole except 1 and itself! After understanding this point, we have ideas. FOR example, FOR a number 101, do I want to compare it with 2 until 100 to see whether the result of its division is 0, IF(101%i == 0), then we will di ...

Added by stormszero on Wed, 23 Feb 2022 16:06:58 +0200