C++ MFC calls Lua
These days, I've studied lua. The main focus is on the integration between Lua and vc. Write the code in the host program and then call the host program's code (or interface, component, whatever you like) in lua. I want to use scripts to control the host program's behavior. This is actually a separate, script-controlled architecture, which some ...
Added by mikeschuld on Tue, 09 Nov 2021 19:40:45 +0200
OpenCV Basic Tutorial (11) - HighGUI GUI
11. HighGUI GUI
Creation and use of 11.1 slider bar
11.1,1 Create slider: createTrackbar() function
The createTrackbar function creates a slider bar that can adjust values:
int cv::createTrackbar(const cv::String &trackbarname, const cv::String &winname, int *value, int count, cv::TrackbarCallback onChange = (cv::TrackbarCallback)0, ...
Added by feckless on Tue, 09 Nov 2021 19:07:13 +0200
Data structure experiment
1. Experimental topic
There is only one narrow passage for n cars in the parking lot, and only one gate for cars to enter and exit. The cars in the parking lot are arranged from north to south according to the sequence of vehicle arrival time (the gate is at the southernmost end, and the first car arriving first is par ...
Added by lowspeed on Tue, 09 Nov 2021 04:13:19 +0200
Summary week 9
This week ended the search list and began to brush the three list and two-point list of mathematics, which is expected to end 14 weeks ago.
Deep search about maps: 1. Pay attention to the boundary. (note that when using memset, it should be considered clearly. Unnecessary parts may also be initialized, affecting the search). 2. The differenc ...
Added by rooky on Mon, 08 Nov 2021 17:19:45 +0200
Inheritance and dynamic memory allocation
Derived classes do not use new
Suppose the base class uses dynamic memory allocation:
class baseDMA
{
private:
char * label;
int rating;
public:
baseDMA(const char * l = "null", int r = 0);
baseDMA(const baseDMA & rs);
virtual ~baseDMA();
baseDMA & operator=(const baseDMA & rs);
...
};
The Declaration contains special me ...
Added by suicide-boy on Mon, 08 Nov 2021 12:03:38 +0200
Multithreading Learning Guide
Recently, I saw some readers asking for the C++ multithreading learning method in the official account. I have summarized it here, hoping to help you.
catalogue
What is multithreading? Why use multithreading? How do I create a thread? joinable()? Multi thread parameter passing mode lock Atomic variable Conditional variable async Mu ...
Added by pornophobic on Mon, 08 Nov 2021 10:00:51 +0200
C + + smart pointer
Smart pointer
1. Introduction and introduction of intelligent pointer
In order to facilitate programmers to solve the problem of memory leakage caused by forgetting to release a heap memory after applying for it, the concept of smart pointer is introduced. The behavior of smart pointer is similar to that of conventional pointer. The important ...
Added by chandru_cp on Mon, 08 Nov 2021 09:27:38 +0200
Abstract base class ABC
Ellipse class
Develop a graphics program to display circles and ellipses. A Circle is a special case of an Ellipse. The major axis and minor axis are ellipses of equal length. Therefore, all circles are ellipses, and the Circle class can be derived from the Ellipse class. The data members include the coordinates of the Ellipse center, semi maj ...
Added by joelg on Mon, 08 Nov 2021 05:31:05 +0200
2021.11.3 CCPC Guilin copper making summary
2021.11.3 CCPC Guilin copper making summary
1. Competition experience
I felt that the organizers were very happy from the beginning, and then all kinds of chat were very friendly. Blood loss didn't go offline. (I'm dead with the epidemic!!!)
I feel that this experience is quite good, but it's very hard for volunteers to work with the environ ...
Added by loosus on Sun, 07 Nov 2021 23:42:09 +0200
2021-11-07 C + + encapsulation inheritance polymorphism -- basic concept relationship between class and object, initialization and cleaning of object (with code understanding)
1 concept and relationship of class and object
Class is an abstraction of a class of things with common attributes and behaviors in real life Characteristics of class: 1. Class is the data type of object. 2. Class is a collection of objects with the same attributes and behaviors What are the properties of an object? Attributes: various charact ...
Added by marksie1988 on Sun, 07 Nov 2021 05:21:18 +0200