[C + +] dynamic loading DLL

Warning! Using static appears in this article_ Cast and reinterpret_cast conversion between object pointer and function pointer is Microsoft extended syntax The syntax itself is undefined Please do not use it in multi system compatibility projects. It does not guarantee any compatibility, nor does it guarantee that it is legal in non MSVC compi ...

Added by shafiq2626 on Fri, 14 Jan 2022 23:59:53 +0200

Django brief development process

1. New Django project At the end of the Location is the Django project name, and select the virtual environment In More Setting, you can select the template language and enter the APP name in Application name. If you do not enter the APP name, the new project does not contain APP by default. After the project is completed, you can use the co ...

Added by dsartain on Fri, 14 Jan 2022 20:18:06 +0200

Do you understand Netty? Can't understand the source code? It doesn't exist. Take you to read the Netty source code

Prepare the following code in advance, start from the server construction, and deeply analyze the startup process of Netty server. public class NettyBasicServerExample { public void bind(int port){ //The server programming of netty should start with EventLoopGroup, // We want to create two eventloopgroups, // One ...

Added by jstarkweather on Fri, 14 Jan 2022 19:08:09 +0200

[C language (self-study record) from 0] one dimensional array

catalogue 1, One dimensional array: (1) Definition of one-dimensional array: 1. Format: 2. Note: (II) reference of one-dimensional array elements: 1. Format: 2. Note: (3) Initialization of one-dimensional array: 1. Format: 2. Note: (4) Example: 1. Compare the size of array elements and output the maximum value: 2. Array inversion ...

Added by khanuja.sunpreet on Fri, 14 Jan 2022 17:54:25 +0200

Notes after reading the art of Java Concurrent Programming - 13 atomic operation classes in Java (Chapter 7)

Notes after reading the art of Java Concurrent Programming - 13 atomic operation classes in Java (Chapter 7) 1. Atomic update basic type class The Atomic package provides the following three classes for updating basic types in an Atomic way: AtomicBoolean: atomic update boolean typeAtomicInteger: atomic update integerAtomicLong: atomic u ...

Added by Ferdog on Fri, 14 Jan 2022 17:21:50 +0200

0 basic C language self-study tutorial - Section 9 briefly understands the creation and destruction of function stack frames from the perspective of underlying assembly

  Write before: Do you want to know why you use vs to hit "hot" when crossing the border? Do you want to know how temporary variables are destroyed after a function call? Welcome to follow me ♥, Subscribe to column 0 basic C language nanny teaching, You can continue to read my article 😀🐕~~~~ Here are full of dr ...

Added by Blulagoon on Fri, 14 Jan 2022 12:06:36 +0200

Operator SDK: read relevant documents and explain some commands in combination with the official sample built based on GO

Operator SDK: read relevant documents and explain some commands in combination with the official sample built based on GO Read and translate some contents in the official document of operator SDK, and use go language to combine the contents in the official document Building Operators Sample of Quickstart for Go-based Operators : a set of simpl ...

Added by Avimander on Fri, 14 Jan 2022 11:29:35 +0200

See how the Gin framework is implemented

Basic use Gin is a high-performance golang web framework. Its code is actually very few. Compared with spring, understanding gin is really chopping melons and vegetables Let's take a look at the basic usage of gin import "github.com/gin-gonic/gin" func Init() { r := gin.Default() initRoute(r) r.Run() } func initRoute(r *gin.Engine) { r ...

Added by martin_g on Fri, 14 Jan 2022 11:29:42 +0200

JAVA learning notes (Chapter 8 file and I/O flow)

1, File object 1. Create file object public class TestFile { public static void main(String[] args) { // Absolute path File f1 = new File("d:/LOLFolder"); System.out.println("f1 Absolute path to:" + f1.getAbsolutePath()); // Relative path, relative to the working directory, if in eclipse, is the project ...

Added by tave on Fri, 14 Jan 2022 07:32:25 +0200

Java practice problem avoidance

How to avoid null pointers at the root? Scenarios where null pointers may be generated public class WhatIsNpe { public static class User { private String name; private String[] address; public void print() { System.out.println("This is User Class."); } public String readBook() { ...

Added by Eugene on Fri, 14 Jan 2022 06:39:19 +0200