Use the Native Debug extension of VSCode to debug the integrity library

VSCode has an extension called Native Debug, which is very convenient for program debugging. This paper describes how to use this extension, taking C/C + + as an example. The running environment is Win10 and the compiler is mingw gcc 9.2.0, which needs to be installed in advance. I. install Native Debug Search for native in the VSCode exte ...

Posted by BizLab on Sun, 01 May 2022 13:01:47 +0300

Application of trap function name of Python function f-string iterator

1, Trap of function 1. Trap of default parameters The default parameter for is a variable data type. No matter how many times you call this default parameter, what you call is the data under the agreed address. The default parameter for is a variable data type. No matter how many times you call this default parameter, what you call is the da ...

Posted by dinku33 on Sun, 01 May 2022 12:46:34 +0300

JavaScript learning summary

preface Recently, I have been using JavaScript for front-end and back-end development (the back-end uses the Express framework), which is a very interesting programming language. Discovery during exploration MDN document (can choose Chinese) is a good learning material, so start reading and make a simple summary. At the end of the article, som ...

Posted by wwfc_barmy_army on Sun, 01 May 2022 09:06:59 +0300

Java Object Oriented Programming -- an introduction to Annotation

Annotation is jdk1 A new development technology structure proposed after 5. Using annotation can effectively reduce the code of program configuration and carry out some structured definitions. In fact, it is a program development in the form of annotation. In the past, our program development was divided into three processes: Process 1: when ...

Posted by simshaun on Sun, 01 May 2022 07:58:40 +0300

How is Quill's Delta designed

quilljs/delta Delta Deltas is a simple and expressive format that can be used to describe Quill's content and changes. This format is essentially JSON, which is human readable and easy to be parsed by machines. Deltas can describe any Quill document, including all text and format information, without the ambiguity and complexity of HTML. Don ...

Posted by Xyn1407 on Thu, 28 Apr 2022 14:25:41 +0300

How does a Switch in Java support strings? Why not support long?

We know that Java Switch supports byte, short and int types, enumeration types in JDK 1.5 and String types in JDK 1.7. So why can't it support long type? Obviously, it is numeric like byte, short and int. how does it support String type? 1, Conclusion Don't talk about it, let's draw a conclusion first: The bottom layer of switch uses int typ ...

Posted by sbunse on Mon, 25 Apr 2022 23:35:29 +0300

Python3.9 study notes (Muyu ★)

   although I started a little late, I finally began to learn Python. As my learning notes, this series of articles is mainly for my own review of the old and new, and also for sharing with you who are interested. As the third article of this note, this article mainly involves the syntax related to lists. This article mainly involv ...

Posted by khovorka on Mon, 25 Apr 2022 17:33:36 +0300

Pat 2020 spring March preparation_ Brush the real questions according to the set of volumes (1-2)

Title stem: 1153 Decode Registration Card of PAT (25 points) Problem solution: I got 19 points for my own problem solution. The last two points timed out. Even if I used unordered mapping, I didn't solve it... But for people at my level, I am very satisfied.This problem can be said to be a very classic one. This problem uses many operations of ...

Posted by deejay on Sun, 24 Apr 2022 18:09:21 +0300

Design mode - on observer mode

Introduction to observer mode Observer pattern is the most commonly used design pattern in design patterns. It is often used in one to many software design scenarios. A popular example is the relationship between a newspaper and its subscribers. Anyone who needs a newspaper only needs to subscribe to the newspaper, and the newspaper office wil ...

Posted by ashrust on Thu, 21 Apr 2022 01:12:48 +0300

Dynamic Planning|Backpack Problem: 01 Backpack, Full Backpack, Multiple Backpacks

Paragraph I. Knowledge Reserve Knapsack problem is a combinatorial optimization NP-complete problem. The problem can be described as: Given a set of items, each item has its own weight and price. Within the limited total weight, how do we choose to make the total price of the item the highest? The name of the problem comes from how to choose t ...

Posted by Cannibal_Monkey on Tue, 19 Apr 2022 20:07:42 +0300