Category:Lang

  • Go commands

    Time:2024-1-16

    Article Catalog preamble Common commands go bug typical example Parameter description go doc typical example Parameter description go env typical example go fix typical example go fmt typical example go generate typical example summarize put at the end preamble Continuing on from the previous post, we’ll cover common commands in the Go language. Common commands […]

  • [C++]vector

    Time:2023-11-28

    Article Catalog I. Introduction to vector Second, vector’s common interface description 2.1 Use of vector 2.2 vector iterator Usage 2.3 The vector space growth problem 2.4 vector Add, Delete, Check, and Change III. Summary I. Introduction to vector Introduction to vector documentation Most of the usage is similar to that of string A vector is […]

  • Basic Syntax of Go

    Time:2023-11-23

    summarize In the previous section, we introduced our first Go program, including: installing the Go environment, writing our first Go program, compiling and running the program, and so on. In this section, we will introduce the basic syntax of Go. Go is a concise and elegant language with some special syntax rules of its own. […]

  • [C++] STL_vector usage with mock implementation of common interfaces

    Time:2023-11-8

    Article Catalog 1. Introduction of vector2. Use of vector2.1 Definition of vector2.2 Use of vector iterators2.3 Spatial growth problems for vectors 3, vector add, delete, check and change3.1 push_back (emphasis added)3.2 pop_back (emphasis added)3.3 operator[] (emphasis added)3.4 insert3.5 erase3.6 swap 1. Introduction of vector Introduction to vector documentation A vector is a sequence container representing […]

  • Use of the C/C++ qsort function

    Time:2023-10-30

    catalogs I. Preface II. Specific use of functions 1. How to search for specific syntax of library functions to use 2. Analysis 3. Integer array sorting 4. Floating-point array sorting 5. Character array sorting 6. Structure array sorting III. Unfinished business. I. Preface Every time you encounter the need to sort the problem need to […]

  • Resource Leakage in C++ Programming

    Time:2023-10-23

    catalogs 1. GDI object leakage 1.1. What is GDI resource leakage? 1.2. Use GDIView tool to troubleshoot GDI object leaks. 1.3 Sometimes it may be necessary to combine with other methods to check 1.4. How to ensure that there are no GDI object leaks? 2. Process handle leakage 2.1 What is process handle leakage? 2.2. […]

  • [C++] Classes and Objects

    Time:2023-10-18

    I. Preamble As usual, let’s start with a recap of the last issue: last issue we focused on the six major C++ classes in theDefault Member Functionsand took it upon himself to implement adate classI’m sure you’ve learned a lot about classes in C++. This is the last installment of classes and objects, and it’s […]

  • [C++] Inheritance

    Time:2023-10-13

    Article Catalog I. Concept and definition of succession1.1 Concept of succession1.2 Definition of Succession1.2.1 Defining formats1.2.2 Inheritance and access qualifiers1.2.3 Changes in the way members of inherited base classes are accessed II. Base Class and Derived Class Object Assignment ConversionIII. Scope in inheritanceIV. Default Member Functions in Derived Classes4.1 Default Constructor4.2 Copy constructors4.3 Assignment Operator […]