c + + ~ Lesson 8: virtual functions and polymorphism
catalogue
Virtual function and virtual function table
Virtual function and polymorphism
Pure virtual function and ADT
virtual destructor
override and final
c + + type conversion
Virtual function and virtual function table
What is a virtual function? Member functions modified with virtual are called virtual functionsThe influence of ...
Posted by WiseGuy on Sun, 06 Feb 2022 05:35:31 +0100
Data structure life from scratch - sequential list and linked list
Sequence table
Understand several key points
C language is process oriented programming, so the object in C refers to the physical memory that stores (multiple) values. An object may not store the actual value, but it has the corresponding size when stored C + + object-oriented programming, so object in C + + refers to class object, whic ...
Posted by Cognito on Sun, 06 Feb 2022 04:10:34 +0100
Basic use of C + + Standard Thread Library
Qt has more thread classes with high encapsulation. It is found that the thread library in the C + + standard library is a little rusty. Here is a summary of the thread related content in the C + + standard library for your reference. In fact, the standard C + + thread library is also very useful.
1. Create thread to execute asynchronously
We ...
Posted by ambrennan on Sun, 06 Feb 2022 03:14:40 +0100
[C + +] backtracking method uses reference passing, lambda expression, vector Back() use
1219. Gold miners You want to develop a gold mine. Geological surveyors have identified the distribution of resources in the gold mine and marked it with a grid of size m * n. The integer in each cell represents the amount of gold in this cell; If the cell is empty, it is 0.
In order to maximize profits, miners need to mine gold according to t ...
Posted by Jyotsna on Sat, 05 Feb 2022 19:31:11 +0100
Learn c++: Variable parameters from cocos2d-x...
Sequence in cocos2d-x is a special action that can represent a sequence of actions. This action is usually created using code like this:
Action* sequence = Sequence::create(acttion1, action2, action3/*, action4, action5...*/, nullptr);
The number of parameters in parentheses is virtually unlimited, either three or more.
So how does this wor ...
Posted by tester2 on Sat, 05 Feb 2022 18:41:45 +0100
Flight time (question 6 of group A of 2018c / C + + of Blue Bridge Cup)
Title:
Title Description
Xiao h went to the United States to participate in the blue bridge cup international competition. Little h's girlfriend found that little h left at 10 a.m. and arrived in the United States at 12 a.m., so she sighed, "now the plane flies so fast that it can reach the United States in two hours.".
Little h wa ...
Posted by cyronuts on Sat, 05 Feb 2022 11:01:03 +0100
[miscellaneous] detailed explanation of Uncrustify configuration of C & C + + beautification tool
Detailed explanation of Uncrustify configuration of C & C + + beautification tool
catalog:
1: Overview 2: Download 3: Installation
0: update Journal
2022 / 2 / 5 update: Chapter 3.3: use. Later, other usage methods will be updated and various ides may be used to use Uncrustify.
1: Overview Due to the use of IDEA and pycharm in sc ...
Posted by emceej on Sat, 05 Feb 2022 07:05:05 +0100
Initial order of c + + singularity template
Initial stage of formwork
Generic Programming
Although function overloading can be implemented, there are several disadvantages
Overloaded functions only have different types, and the reuse rate of code is relatively low. As long as new types appear, corresponding functions need to be addedThe maintainability of the code is ...
Posted by raptoni on Sat, 05 Feb 2022 06:50:41 +0100
c + + Lesson 7 - inheritance and derivation
Inheritance mode and authority
Writing of inheritance:The parent class is also called the base class; Subclasses are also called derived classesThe essence of inheritance: there is one copy of the data and member subclasses of the parent classPermission problem: the inheritance method will only enhance the permission display of parent class at ...
Posted by eazyefolife on Sat, 05 Feb 2022 04:36:25 +0100
C++ Right Value Semantic Foundation--Perfect Forwarding
Personal Site Version Link
What is perfect forwarding?
Familiar with modern C++ syntax, it should be clear that C++ divides variables into left and right values. In order to transfer resources instead of copying, right values and corresponding mobile constructors arise, but we find that many times we can't precisely transfer left and rig ...
Posted by mattastic on Fri, 04 Feb 2022 18:56:51 +0100