Simulate the string class–[C++]

W…Y’s homepage Code repository sharing Foreword: We have already understood and mastered all the important interfaces of the string class in STL. In order to give us a deeper understanding of string and C++ classes and objects, our blog will simulate and implement the string class. Table of Contents Simulation implementation of string class Constructor […]

[Elementary C++] Classes and Objects (3)

Directory 1. Let’s talk about the constructor again 1.1 Initialization list 1.1.1 How to write the initialization list 1.1.2 Which members should use the initialization list? 1.2 Characteristics of initialization list 1.2.1 Solving queue problems 1.2.2 The declaration order is the order of the initialization list 1.3 explicit keyword 1.3.1 The role of explicit keyword […]

Oracle active/standby switchover, ogg recovery method (classic mode)

Foreword: This article mainly introduces how to recover the ogg process (classic mode) running in the main database and standby database when the Oracle database physical ADG primary and backup switches (switchover, failover). Test recovery scenario: 1 A switchover occurs between the active and standby devices, and the main database is the ogg source. 2 […]

Classic OJ questions about linked lists (palindromic structure of linked lists, linked lists with rings, deep copies of linked lists)

Table of Contents Preface 1. Reverse a singly linked list. 2. Given a non-empty singly linked list with head node head, return the middle node of the linked list. 3. The palindrome structure of the linked list. 4. The problem of chain strap ring (*****) 4.1 Whether to wear a ring 4.2 Nodes entering the […]

The use and classification of 68 built-in functions in Python

Foreword Functions built into the Python interpreter that can be used directly. These functions require no additional imports or installation and can be called directly from Python code. Python’s built-in functions include many commonly used functions, such as operations on data types, mathematical operations, string processing, file operations, etc. Some common built-in functions include print(), […]

Elementary C++–Classes and Objects (3) (Illustration)

Article directory Let’s talk about the constructor again initialization list implicit type conversion explicit keyword static member Friend class inner class anonymous object Some optimizations when copying functions Let’s talk about the constructor again In our previous constructor, the compiler will give a suitable initial value to each member of the object through the constructor, […]

[PyQt] (self-made class) handles mouse click logic

I wrote a class that I think is pretty good to simplify the mouse information in mousePressEvent, mouseMoveEvent and mouseReleaseEvent. The functions include the following: Current mouse status, including left/middle/right mouse button and click/double-click/lift Mouse anti-shake (only when the mouse has moved beyond a certain level), the sensitivity can be set; Mouse long press (triggered […]

CDialogBase MFC dialog base class

Based on the dialog base class abstracted from message mapping, business development only needs to inherit this class. This parent class can already meet a large number of business scenarios. For example, creating a modal dialog box or a non-modal dialog box, etc., is only encapsulated. #pragma once #include “common.h” /****************************************************** ************************/ /* \t Based […]

Data Analysis Practice | Bayesian Classification Algorithm – Automatic Case Diagnosis Analysis

Table of Contents 1. Data and analysis objects 2. Purpose and analysis tasks 3. Methods and Tools 4. Data reading 5. Data understanding 6. Data preparation 7. Model training 8. Model evaluation 9. Model parameter adjustment 10. Model prediction 1. Data and analysis objects CSV file – “bc_data.csv” Dataset link: https://download.csdn.net/download/m0_70452407/88524905 This data set mainly […]

Solution to the mismatch between the field name in the JSON string and the field name in the Java class (use of @JsonProperty(“”) and @JSONField(name = “”))

1.1 Background 1.1.1 The so-called background, that is, what is the purpose and reason for writing this blog? Recently, I encountered a very strange requirement at work. I used WebService to adjust a third-party interface, but the return value of the third-party interface was an Xml structure. It was not surprising at first. But then […]