Category:c++

  • [C++] list basic interface

    Time:2024-2-19

    Parents are like iterators that encapsulate their vulnerability …… Hand torn list catalog: I. List’s common interfaces and their use 1.1 List Constructors and Adding, Deleting, Checking and Changing 1.2list Special Interfaces 1.3 List Sorting Performance Analysis Second, list iterator implementation (focus + difficulty) Introductory knowledge about iterators: 2.1 Classification of Iterators 2.2 List Iterator […]

  • [C++] list basic interface

    Time:2024-2-19

    Parents are like iterators that encapsulate their vulnerability …… Hand torn list catalog: I. List’s common interfaces and their use 1.1 List Constructors and Adding, Deleting, Checking and Changing 1.2list Special Interfaces 1.3 List Sorting Performance Analysis Second, list iterator implementation (focus + difficulty) Introductory knowledge about iterators: 2.1 Classification of Iterators 2.2 List Iterator […]

  • [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 […]

  • [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 […]