VScode usage notes

The following notes are from: https://www.bilibili.com/video/BV13K411M78v?p=2 Existing problems: the compilation cannot be completed automatically, and you need to manually input commands to compile and connect them into executable files. preparation 1. Installing software and compilers How to install the compiler: https://www.cnblogs.com/TA ...

Posted by algarve4me on Tue, 01 Feb 2022 18:32:59 +0100

Advanced Guide to algorithm competition 0x62 T4 Dark Castle

Title portal Title Description After successfully breaking through Lord lsp's defense line, lqr the party came to the bottom of Lord lsp's castle. After Lord lsp blackened, although he has powerful super ability and can make buildings with his mind, his IQ level has not increased much. Now lqr it is clear that the dark castle has N rooms, M ...

Posted by samip1983 on Tue, 01 Feb 2022 18:27:01 +0100

Analysis of JPEG principle and debugging of JPEG decoder

Analysis of JPEG principle and debugging of its decoder 1, Experimental purpose Master the basic principle of JPEG codec system. Preliminarily master the implementation of complex data compression algorithm, and be able to output the corresponding data according to the needs of theoretical analysis. 2, Experimental content (1) Experimen ...

Posted by saami123 on Tue, 01 Feb 2022 17:23:34 +0100

MFC C + + build file explorer (tree control version)

Today, let's teach you how to make a self-made file resource manager (・). compiler:Visual Studio 2019 Objectives: 1. Learn to use multithreading 2. Learn to recursively traverse all folders Here are the teaching hours: Open the compiler and create an MFC application Draw bed mouth Create a thread Note: because the workload is larg ...

Posted by madrazel on Tue, 01 Feb 2022 05:45:58 +0100

Compilation Principle Experiment 3 bottom-up syntax analysis

1, Experimental purpose (1) According to the grammar specification of PL/0 language, it is required to write the syntax analysis program of PL/0 language. (2) By designing, compiling and debugging a typical bottom-up grammar analysis program, we can realize the grammar check and structure analysis of the word sequence provided by the grammar a ...

Posted by lynxus on Tue, 01 Feb 2022 01:01:33 +0100

C + + Design Pattern -- factory pattern

Factory mode (factory) Definition: a utility class that creates an instance of a derived class Abstract Factory Definition: a utility class that creates an instance of a derived class. You can also create an instance of a factory. The factory pattern is useful when you need to create many different types of objects that derive from a common ...

Posted by DanDaBeginner on Tue, 01 Feb 2022 00:21:24 +0100

C + + learning notes

C + + learning notes quote 📖 1. Definition of reference int a = 3; int &r = a; // In this case, it is called r reference a, and r is the alias of A Note: after initializing the reference, it cannot be modified int b = 4; r = b; //At this time, it is only equivalent to assigning the value of b to a; 2. Function of reference ...

Posted by gufmn on Mon, 31 Jan 2022 22:10:15 +0100

❤️ [dynamic graph demonstration of top 10 classic sorting algorithms (c + + version)] ❤️

1, Fundamentals of sorting algorithm 1. Algorithm classification Common sorting algorithms can be divided into two categories: Comparison sort: the relative order between elements is determined by comparison. Because its time complexity cannot exceed O(nlogn), it is also called nonlinear time comparison sort. Non comparison sort: the re ...

Posted by keiron77 on Mon, 31 Jan 2022 21:17:31 +0100

Bipartite graph algorithm

Coloring is used to judge whether a graph is a bipartite graph Bipartite graph: all points in the graph can be divided into two sides, so that all edges are between sets, and there are no edges inside the set Properties used: a graph is a bipartite graph if and only if the graph can be dyadic A graph is a bipartite graph if and only if it do ...

Posted by az_wraith on Mon, 31 Jan 2022 20:22:59 +0100

[C + + from 0 to 1] Part 5: classes and objects

1, On constructor 1.1 constructor body assignment When creating an object, the compiler calls the constructor to give each member variable in the object an appropriate initial value class Date { public: Date(int year, int month, int day) { _year = year; _month = month; _day = day; } private: int _year; int _month; ...

Posted by NewBob on Mon, 31 Jan 2022 18:11:52 +0100