Derivation of C++ decltype type

decltype specifier (C++11) C++11 introduces a decltype specifier, which can obtain the type of an object or expression. It is also easy to use: #include <iostream> int main() { int x1 = 0; decltype(x1) x2 = 0; // x2 is derived as int type (type of variable x1) std::cout << typeid(x2).name() << s ...

Posted by bimbo on Wed, 07 Sep 2022 22:08:45 +0300

Regular + Python: a lightweight interface documentation tool

ApiFormatMd lightweight Java interface document generation tool characteristic Execute Java code completely based on native code without reference to additional dependenciesGenerate MarkDown format documents. You can use ShowDoc to generate online documents Configuration item main.py Author = 'River fire is like a firefly' (corre ...

Posted by maseeha on Wed, 24 Aug 2022 07:29:09 +0300

Detailed explanation and implementation of c + + callback function (lambda)

A callback function is a function that is passed as a parameter. In C language, callback function can only be implemented by function pointer. In C + + language, you can also use imitative function or anonymous function. The use of callback function can greatly improve the efficiency of programming, which makes it widely used in modern programm ...

Posted by darkhappy on Mon, 22 Aug 2022 02:50:43 +0300

Golang implements word and Excel processing

Golang uses the underlying development of Windows I know from the previous blog, Python can realize Windows low-level development through pywin32 The most common are word and Excel processing, automatic printing, etc. I once said that programming language is just a tool. As long as the tool plays smoothly, everything is possible. According ...

Posted by Iconoclast on Fri, 19 Aug 2022 10:39:05 +0300

seaborn notes: plotting the distribution of points

1 Histogram 1.0 Dataset import seaborn as sns penguins = sns.load_dataset("penguins") penguins 1.1 Univariate Histogram 1.1.1 displot sns.displot(penguins, x="flipper_length_mm") 1.1.2  histplot sns.histplot(penguins, x="flipper_length_mm") 1.1.3 binwidth Set Histogram Interval Width sns.displot(penguins, x="flipper_length_mm", ...

Posted by cyprus on Wed, 17 Aug 2022 00:19:44 +0300

Youwei low code: Transform data conversion

Introduction The low code technology column of Youwei is a brand-new and technology-based column written by the members of Youwei Technology Committee. Based on the research and development and operation and maintenance achievements of low code technology of Youwei in the past 7 years, it mainly introduces the technical principles and arch ...

Posted by bhola on Tue, 16 Aug 2022 12:30:16 +0300

Refactoring: reorganizing functions

1, Put a piece of code into a separate function 1.1 code example 1.2 application scenarios When there is an overly long function or a piece of code that needs comments to make people understand its purpose, put this code into a separate function. 1.3 benefits First, there is a greater chance that functions can be reused with each ...

Posted by TheIceman5 on Wed, 10 Aug 2022 21:29:37 +0300

Java object orientation: the ultimate training of interfaces

Problem description There are four roles as follows. The attributes and behaviors of these roles are Stock investors: name, age, study stock speculation, speak English Fund Investor: name, age, study and speculation Stock Manager: name, age, teaching stock trading, speaking English Fund manager: name, age, teaching and speculation base Pl ...

Posted by ballhogjoni on Tue, 09 Aug 2022 21:47:12 +0300

Encapsulation, inheritance and polymorphism of java

encapsulation Characteristics of encapsulation: data can only be accessed through specified methods.Hide the instance details of the class to facilitate modification and implementation.Specific practical steps of packaging Modify the visibility of attributes to restrict access to attributes, which is generally set to private.Create a pa ...

Posted by zz50 on Tue, 09 Aug 2022 21:33:18 +0300

Javac compilation custom annotation and analysis annotation implementation of Lombok

1, Ask questions with Lombok 1.1 INTRODUCTION 1. Open settings (shortcut key: ctrl+alt+s) in idea, search plugin, search lombok in plugins, and install 2. Introduce lombok dependencies into the project <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version&gt ...

Posted by jf3000 on Tue, 09 Aug 2022 11:59:23 +0300