VSCode debugging C + + program, opencv library and Qt5 Library under Ubuntu

1. Readme I have been using vscode for more than three years. Most of them write python programs and occasionally C + + programs, but they are not complex and do not involve other third-party libraries. Even if third-party libraries are involved, most of them write CMakeLists files first, and then compile and run it with the standard cmake... ...

Added by mlschutz on Wed, 09 Feb 2022 12:15:01 +0200

[summary] summary of JC training from August 2, 2021 to August 18, 2021

Update 2021.8.2-2021.8.18 wrote this blog to commemorate the 2021 summer JC training 2021.9.3-2021.9.8 modification 2022.2.9 the part of bipartite graph is improved 2021.8.2(dp) 1. Milking 01 simple question of backpack 2.Gangsters First sort the structure array from small to large according to the time point, and then ...

Added by chaddsuk on Wed, 09 Feb 2022 11:42:05 +0200

Informatics Aosai Bentong evaluation system P1336

Congratulations on seeing this solution. It will help you avoid many pitfalls Of course, I don't want the big guy to be like the big guy in the following question. [AHOI2017/HNOI2017] big man - Luoguhttps://www.luogu.com.cn/problem/P37241336: [example 3-1] find tree roots and children Time limit: 1000 ms memory limit: 65536 KB Number of subm ...

Added by BioBob on Wed, 09 Feb 2022 06:38:02 +0200

C + + introductory syntax

Namespace In c and c + +, there are a large number of variables, functions and classes to be learned later. The names of these variables, functions and classes exist in the global scope, which may lead to many conflicts. The purpose of using namespace is to localize the identifier name to avoid naming conflict and name pollution. The em ...

Added by BigX on Wed, 09 Feb 2022 03:21:39 +0200

C + + "STL vector Learning Notes"

Introduction: The vector class is called the vector class. It implements a dynamic array, which is used for an array of objects with variable number of elements. The elements in the order container are sorted in strict linear order. The corresponding element can be accessed through the position of the element in the sequence. When expanding ...

Added by bluntster on Wed, 09 Feb 2022 01:16:10 +0200

Linux system IO function

1. open function Function prototype: int open(const char *pathname,int flags); int open(const char *pathname,int flags,mode_t mode); pathname: the relative or absolute path of the fileflags: open mode Required (the three methods are mutually exclusive) O_RDONLY: read only openO_WRONLY: write only openO_RDWR: read / write open Op ...

Added by mckinney3 on Wed, 09 Feb 2022 01:08:48 +0200

2021 12th Lanqiao cup provincial tournament group B C/C++

2021 12th Lanqiao cup provincial tournament group B C/C++ preface: Recall that I participated in the blue bridge cup for the first time last year. At that time, I was a freshman and full of enthusiasm. Although I only learned c language and had only a little contact with c + +, I signed up for the competition at the suggestion of my senio ...

Added by horseatingweeds on Tue, 08 Feb 2022 20:28:07 +0200

C + + reference 10 minute introductory tutorial

C + + reference 10 minute introductory tutorial We know that the transfer of parameters is essentially a process of assignment, which is to copy the memory. The so-called memory copy refers to copying data from one memory to another. For basic types of data such as char, bool, int, float and so on, the memory they occupy is often only a few b ...

Added by LostOne on Tue, 08 Feb 2022 12:41:19 +0200

Understanding and basic usage summary of smart pointer in C + +

1 overview of smart pointer There is no doubt that the smart pointer is more intelligent than the ordinary bare pointer (that is, the pointer of the object we directly use new). The most clear embodiment is that it can automatically help you manage the problem of memory leakage. In other words, using the smart pointer does not require you ...

Added by dineshsjce on Tue, 08 Feb 2022 11:19:51 +0200

Summary and implementation of socket

Introduction to socket Socket originally means "socket". In the field of computer communication, socket is translated as "socket". It is a convention or a way of communication between computers. Through the socket agreement, a computer can receive data from other computers or send data to other computers. According to the ...

Added by suzzane2020 on Tue, 08 Feb 2022 09:44:53 +0200