C + + Learning Log: detailed explanation of C + + constructor
stay C++ In, there is a special member function with the same name as the class name and no return value. It does not need to be explicitly called by the user (nor can the user), but is automatically executed when the object is created. This special member function is the Constructor.
In< Access rights of C + + class members and class encap ...
Added by tartou2 on Mon, 03 Jan 2022 15:41:27 +0200
First knowledge of Windows programming
I am a beginner with limited level. I write blog mainly to record my learning track. Refer to msdn for code introduction. If there are errors or omissions, please criticize and correct. Thank you for reading!
1. Basic understanding of Windows programming
The simplest windows programming calls some user state API s in windows, mostly user32 ...
Added by davelr459 on Mon, 03 Jan 2022 15:31:12 +0200
Circular Queue
1, Define queue_ Data type of T
#define QUEUESIZE 1000
typedef struct Queue {
u8 queue[QUEUESIZE];
int queue_read;
int queue_write;
enum {
no_read = 0, //No read operation was performed
reading, //Performing read operation
reread, //The read pointer has been overridden
} queue_mark;
} Queue_t;
Queue is the array storing the ci ...
Added by laurus on Mon, 03 Jan 2022 13:21:39 +0200
An article fully understands the list container in C++STL (with practical exercises - student achievement management system)
1. Basic concept of list container
(1) The list container is actually a linked list, which is different from the vector container. The list container stores the data chain through the pointer;
(2) The linked list is composed of a series of nodes. Each node is composed of the data field for storing data and the pointer field for ...
Added by jllydgnt on Mon, 03 Jan 2022 12:53:32 +0200
pE file operation -- move export table
1, What is an export table? First review the structure of the export table: the relatively complex three sub tables are AddressOfFunctions, AddressOfNames and AddressOfNameOrdinals; The address table stores the exported function address, the name table stores the RVA of the function name of the function exported by name, and the sequence number ...
Added by pbalsamo on Mon, 03 Jan 2022 12:19:01 +0200
Advanced C + + template
Non type template parameters
Template parameter classification type shape participates in non type parameter. Type parameter: it appears in the template parameter list, followed by parameter type names such as class or typename. A non type parameter is to use a constant as a parameter of the class (function) template, which can be used ...
Added by phpnow on Mon, 03 Jan 2022 11:20:27 +0200
[design pattern, C + +, go] creation pattern: Builder Pattern
Builder pattern
introduce
Builder Pattern uses multiple simple objects to build a complex object step by step
Definition: Separate the construction of a complex object from its representation sothat the same construction process can create different representations. (separate the construction of a complex object from its representati ...
Added by sayoko on Mon, 03 Jan 2022 10:20:18 +0200
Learned the shortest path problem of a graph
The shortest path problem of a graph
Description
The weather is getting colder. The old and frail Yueyue bird plans to spend the winter in a city with appropriate temperature in the south. However, due to the serious aging of its wings, the farthest flight distance is limited. Please calculate the shortest distance required for the poor Yueyue ...
Added by SWI03 on Mon, 03 Jan 2022 10:15:22 +0200
Homework: File typesetting (text file reading and writing)
[problem description]
The list of actors in English films is usually typeset and displayed in some way. Given an unformatted file listin Txt, the list of participants in each line of the file is separated into two parts by a colon "ldquo:rdquo", but the format is messy. Words (composed of characters other than spaces and horizontal t ...
Added by cleromancer on Mon, 03 Jan 2022 07:54:37 +0200
QT GUI programming!
1, QT basis
1.1 introduction to QT
1.1.1. What is QT
A bunch of C++/python class libraries (GUI classes, network,...)Free open source
1.1.2 QT characteristics:
Excellent cross platform characteristics: Qt supports the following operating systems: Windows, Linux, Solaris, sun0s, FreebSD, BSD/S, SCO, AIX, 0S390, QNX, android, etcobject- ...
Added by aladin13 on Mon, 03 Jan 2022 05:57:34 +0200