C + + learning notes: classes and objects

This blog post is a note taken when learning the C + + video of dark horse programmer. It's just convenient to review the old and know the new. It's not used for other purposes. C + + has three major object-oriented features: encapsulation, inheritance and polymorphism. 1, Encapsulation Encapsulation: hide the attributes and implementati ...

Posted by spamoom on Tue, 23 Nov 2021 04:35:41 +0100

swust oj problem solving #509 bedroom sweeping (nanny teaching)

catalogue subject Train of thought analysis code implementation subject Train of thought analysis According to the idea of this question, we might as well make a calendar for 2007 Then, according to the requirements of the topic, discharge the floor sweepers MonTueWedThuFriSatSunSeptember1(B)2(X)3(ALL)4(H)5(P)6(B)7(X)8(H)9(P)10(ALL)1 ...

Posted by spooke2k on Mon, 22 Nov 2021 22:45:08 +0100

[C + + primary] List bottom framework Simulation Implementation

1, List frame construction 1. Introduction list is a sequential container that can be inserted and deleted at any position within the constant range, and the container can iterate back and forth.The bottom layer of list is the leading two-way linked list structure. Each element in the two-way linked list is stored in independent nodes t ...

Posted by marcela1637 on Sun, 21 Nov 2021 21:02:29 +0100

PAT class a 1010 Radix personal understanding

1010 Liu Shen It has been updated locally recently &Goodbye, firefly& 1010 Radix (25 branch) Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a binary number. Now for any pair of positive integers N 1 ​ and N 2 ​ , your task is to ...

Posted by phpScott on Sun, 21 Nov 2021 19:43:49 +0100

Depth first search (DFS)

Depth first search: Starting from the initial state, there may be multiple states in the next step; Select one of the States to go deep and reach a new state; Until you can't go further, go back to the previous step, move to another state, and then go further. Finally, all the attainable states are traversed and the final solution is obtained. ...

Posted by mathewvp on Sun, 21 Nov 2021 10:20:19 +0100

C language file operation details

catalogue Concept of document   Classification of documents   Classification of data files text file   Binary file   File operation   Opening and closing of files   Open file   Close file   field name pointer file name   file buffer Second argument to fopen function   Sequential re ...

Posted by daveeboi on Sun, 21 Nov 2021 08:55:45 +0100

Visitor design pattern

Usage scenario of visitor mode 1. The object structure is relatively stable, but it is often necessary to define new operations on this object structure. 2. You need to perform many different and irrelevant operations on objects in an object structure, and you don't want to modify these classes when adding new operations. Visitor pattern sepa ...

Posted by JimmyD on Sun, 21 Nov 2021 07:18:19 +0100

Application and practice of software engineering in Shandong University -- WeaselUI

2021SC@SDUSC After analyzing the header files referenced by WeaselPanel.h in the first two articles, we can finally take a look at the specific contents of WeaselPanel.h and WeaselPanel.cpp. typedef CWinTraits<WS_POPUP|WS_CLIPSIBLINGS|WS_DISABLED, WS_EX_TOOLWINDOW|WS_EX_TOPMOST> CWeaselPanelTraits; class WeaselPanel : public CWindowIm ...

Posted by parena on Sun, 21 Nov 2021 02:36:17 +0100

Design pattern notes - agent pattern

Design pattern notes - agent pattern Introduction to agent mode The proxy mode is usually an intermediary system between the requester and the provider. The requester is the party who sends the request, and the provider is the party who provides the corresponding resources according to the request The proxy server in the Web is an example. T ...

Posted by McInfo on Sun, 21 Nov 2021 01:39:07 +0100

Some operations of image container Mat and matrix in OpenCV4

catalogue Images and matrices: Image container Mat in OpenCV First create an image container Mat and feel it: Let's talk about the third parameter CV_8UC1 image file format: Traverse Mat matrix elements (image pixel values): Use Mat to perform various matrix element level operations: C + + realizes the creation and operation of matrix: ...

Posted by TheStalker on Sat, 20 Nov 2021 23:11:07 +0100