C + + Basics

Basic knowledge of C + + (I) 1. Foreword πŸ‘‰πŸ‘‰ In 1979, C + + was born and sprouted. In 1983, it was officially renamed C + +, Benjani Strauss LUP (Bjarne Stroustrup). C + + can carry out both process oriented programming in C language and object-oriented programming (encapsulation, inheritance and polymorphism) in Java language. It ...

Added by sorenchr on Sun, 30 Jan 2022 21:43:42 +0200

Android FFmpeg realizes wechat small video recording function with filter

This paper will realize the simultaneous coding and multiplexing of the collected preview frame (add filter) and PCM audio to generate an mp4 file, that is, to realize a small video recording function imitating wechat. Audio and video recording and coding process This paper adopts software coding (CPU) implementation, so when aiming at high- ...

Added by Tatara on Sun, 30 Jan 2022 20:45:15 +0200

Several installation methods of Qt under ubuntu

Several installation methods of Qt under ubuntu This article introduces a variety of installation methods, including apt package management system, binary package, source code, and online installation of Qt SDK and Qt Creator. apt Execute the following commands in sequence # Open the terminal, right click on the desktop - > open term ...

Added by rosegarden on Sun, 30 Jan 2022 20:30:52 +0200

[C + + advanced learning] polymorphism in C + +

Zero. Preface C + + has five characteristics: object, encapsulation, inheritance, abstraction and polymorphism. The chapter will explain polymorphism in C + + 1, Concept and definition of polymorphism Concept: Generally speaking, it is a variety of forms. Specifically, it is to complete a certain behavior. When different objects ...

Added by intergroove on Sun, 30 Jan 2022 17:40:18 +0200

PTA class a simulated third bomb: 1140-1143

I feel like I'm redeeming the sin of not practicing the algorithm well in College for three years πŸ˜“ 1. Summary of knowledge points The knowledge points involved in this operation include: string manipulationSTL + sortgraph theoryBST tree (time complexity) Title numberdifficultyKnowledge points1140🐸String and number conversion + English Re ...

Added by brotherhewd on Sun, 30 Jan 2022 13:17:04 +0200

Design of C + + special class

Designing a class can only create objects on the heap The desired effect is that you can't create objects directly on the stack. First of all, cpp needs to call the constructor as long as it creates an object, so first ban the constructor and design the constructor as private. But you can't create it yourself. Therefore, a created interf ...

Added by MMeticulous on Sun, 30 Jan 2022 13:02:39 +0200

Six skills to improve the vector performance of C++11

Vector is like the Swiss Army knife of C++ STL container. Bjarne Stoutsoup has a saying – "generally, if you need a container, use vector". Ordinary people like us regard this sentence as truth and just need to do the same. However, like other tools, vector is just a tool. It can improve efficiency and reduce efficiency. In thi ...

Added by tommy445 on Sun, 30 Jan 2022 11:13:38 +0200

C + +: thread (std::thread)

1. Create a thread Creating a thread is relatively simple. Instantiating a thread object with std thread completes the creation. Example: 1 #include <iostream> 2 #include <thread> 3 using namespace std; 4 5 void t1() //Ordinary functions used to execute threads 6 { 7 for (int i = 0; i < 20; ++i) 8 { 9 ...

Added by crimsonmoon on Sun, 30 Jan 2022 10:27:04 +0200

Qt custom control ------ SwitchButton

brief introduction SwitchButton is a very common and practical button. I was surprised that there was no Switch in Qt, so I had to implement it myself. effect The renderings are shown below Control split 1, The control is generally composed of two parts, one is the background and the other is the white slider. The original background was ...

Added by markc1 on Sun, 30 Jan 2022 08:17:31 +0200

Implementing visitor mode in C + +

1. Situation and intention   we store a lot of food in the freezer. For mothers, opening the freezer is mainly to cook with vegetables and meat, and for children, it is mainly to take ice cream and drinks.   in daily development, there must be some classes related to data structures, such as the model for designing data stora ...

Added by freedomsam on Sun, 30 Jan 2022 05:24:53 +0200