The Qsort function implements sorting of elements in various types of arrays (simple idea)

Table of Contents Function introduction Function use case: (1) Sorting of int arrays (2) Sorting of char array (3) Sorting floating-point arrays (4) Sorting of structure types (5) Imitate the function of qsort to implement a general bubble sort Function introduction Function:Quickly sort the array elements in the pointed array Header file: stdlib.h Function prototype:void […]

IntelliJ IDEA software setup checklist

IntelliJ IDEA software settings list Article directory IntelliJ IDEA software setup checklist Global default settings Develop basic configuration Unified settings for JDK & Java versions Unified setting of compiler and compiled version Unicode character set Check Transparent native-to-ascii conversion? See details What is UTF-8 BOM? [Project compilation error: java illegal character \\?_illegal character\\?-CSDN blog](https://blog.csdn.net/xinpz/article/details/109713959) Unify […]

“Ideas of optimizing interface design” series: Part 5 – How to handle exceptions in the interface in a unified manner

Series article navigation Part 1 – Some twists and turns of interface parameters Part 2-Design and Implementation of Interface User Context Part 3 – Leaving traces of the user calling the interface Part 4-Permission Control of Interfaces Part 5 – How to handle exceptions in the interface in a unified manner Part 6 – Some […]

Use IDEA plug-in to generate YaPi interface documents + Windows environment to build YaPi service

Use IDEA plug-in to generate YaPi interface documents + build YaPi service in Windows environment [Note 1: Before using the idea plug-in to generate yapi documents, you need to set up a yapi service] [Note 2: This article is about setting up the Yapi service on Windows] [Note 3: It is best to keep the […]

Software Quality and Testing Experiment 5: Unit Testing with Eclipse (IDEA) Junit

1. Experimental purposes and requirements 1.1 Use Junit environment configuration in Eclipse (or IDEA) environment 1.2 Design of Junit test script 1.3 Test results 2. Experimental environment window 10 IntelliJ IDEA 2023.1 x64 Java Junit 3. Experiment content Configure the Junit environment in the IDEA tool Design a Junit test example script about the triangle […]

Design ideas for internal calls of interfaces between microservices (server side)

Foreword First of all, when it comes to internal calls between interface microservices, the most important thing to consider is how the service provider can dynamically identify which interfaces need to be exposed, without opening the access scope too large to avoid security issues. Secondly, how to ensure that these exposed interfaces can normally accept […]

Error when compiling Spark source code locally in idea

Report the error content first [INFO] Scanning for projects… [INFO] ————————————————– ————————– [INFO] Detecting the operating system and CPU architecture [INFO] ————————————————– ————————– [INFO] os.detected.name: osx [INFO] os.detected.arch: x86_64 [INFO] os.detected.version: 10.15 [INFO] os.detected.version.major: 10 [INFO] os.detected.version.minor: 15 [INFO] os.detected.classifier: osx-x86_64 [INFO] ————————————————– ————————– [INFO] Reactor Build Order: [INFO] [INFO] Spark Project Parent POM [pom] […]

7. Handwritten Vector (imitating STL-vector) (only encapsulation idea)

Handwritten Vector (imitating STL-vector) (only encapsulation idea) /********************************************** *************************** > File Name: vector.cpp > Author:Xiao Yuheng > Mail:[email protected] > Created Time: Wed Nov 1 07:04:57 2023 *************************************************** ************************/ ? #include <iostream> #include <cstring> ? using namespace std; ? int *allocate(int n) { return new int[n]; } void destroy(int *data) { delete[] data; } ? class […]