Summary of C + + class topics

1. Description Analyze the custom class mysrtcla given below, the main function given later and the screen display results after the execution of the program. Then, the specific implementation of its three member functions (used to complete the set user-defined functions) is given (supplemented) outside the class, so that the screen display re ...

Added by VinzC on Sat, 11 Dec 2021 16:27:02 +0200

C++11 auto and decltype keywords

auto keyword auto placeholder type specifier: for a variable, specifies that its type is automatically derived from its initializer. https://zh.cppreference.com/w/cpp/language/auto When programming, you often need to pay the value of the expression to the variable, and you need to know clearly what type the variable is when declaring the ...

Added by chris davies on Sat, 11 Dec 2021 12:58:11 +0200

C + + file read / write operations std::ofstream and std::ifstream

Tip: after the article is written, the directory can be generated automatically. Please refer to the help document on the right for how to generate it preface This article is mainly to sort out the file operations std::ofstream and std::ifstream in C + +. 1, Introduction to file operation std::ofstream and std::ifstream belong to fsst ...

Added by dvdflashbacks on Sat, 11 Dec 2021 07:02:35 +0200

< C++ Primer > learning notes Chapter 3 string vector and array

The second half mainly introduces iterators and arrays. iterator Iterators are like pointers and can access objects indirectly. Use of iterators The iterator has begin and end members. Begin is the iterator responsible for pointing to the first element, end is the "tail" that does not exist in a container, and the iterators returned ...

Added by Mystis on Fri, 10 Dec 2021 18:08:41 +0200

Visual SLAM Lecture 14 CH11 code analysis and detailed explanation of exercises after class

If DBoW3 is not installed, the following error will be reported when compiling directly: fatal error: DBoW3/DBoW3.h: No such file or directory #include "DBoW3/DBoW3.h" ^~~~~~~~~~~~~~~ compilation terminated. CMakeFiles/gen_vocab.dir/build.make:82: recipe for target 'CMakeFiles/gen_vocab.dir/gen_vocab_large.cpp.o' failed make[2]: *** ...

Added by wilsonodk on Thu, 09 Dec 2021 18:35:36 +0200

C + + brush notes

Write in front: mainly for myself. My professional c + + curriculum planning requirements are very low, and I only learn the part of c You are very welcome to give me a little guidance 55 function Perfect number A unit holds a diving competition in a lake. This is a team project. Each team is composed of n people and requires all team membe ...

Added by KC_Geek on Thu, 09 Dec 2021 08:47:34 +0200

Technical part of More Effective C + + - Reference counting

Reference counting is a technology that allows multiple equivalent objects to share the same real value. There are two motives for the development of this technology. The first is to simplify the bookkeeping around the heap object. It can eliminate the burden of "recording object ownership", because when an object uses the reference c ...

Added by nonlinear on Thu, 09 Dec 2021 06:21:53 +0200

ubuntu vscode configures c + + through cmake and debugs like VS2019

  previous   Configure c + + for vscode under linux to debug it like visual studio 2019 Similar to this article, the article configures vscode to debug and compile with vs2019, but the previous article is not very practical. It is configured in the form of command line. This method is good for small projects. If it is a very complex p ...

Added by Dan The Man on Thu, 09 Dec 2021 00:05:32 +0200

< 2021SC@SDUSC OvGame of open source game engine Overload code module analysis -- DebugFrameInfo & GameProfiler

2021SC@SDUSC OvGame (V) - Debug (Part 2) frameinfo & gameprofiler preface This is the next installment of OvGame's Debug. We will explore its last two parts, frameinfo & gameprofiler. To learn about another part of Debug, go to Debug (Part 1) read. In addition, if you want to get a general understanding of the major modules of th ...

Added by jera on Wed, 08 Dec 2021 20:56:20 +0200

QML>6>C++ Pass Complex Data Structure to QML TableView Use C++ Model QAbstractTableModel

QML < 6 > C++ Pass Complex Data Structure to QML TableView uses C++ Model QAbstractTableModel Preface TableView tables display commonly used controls and use C++ model s to handle complex data structures and to decouple data and UI. This article documents Tableview's use of a C++ model example, using Model as the QAbstractTableModel. Ta ...

Added by wlpywd on Wed, 08 Dec 2021 09:39:19 +0200