C + + realizes log function: log4cplus (VS2017+Win10)

1,log4cplus https://sourceforge.net/projects/log4cplus/ https://github.com/log4cplus/log4cplus log4cplus is a simple to use C++ logging API providing thread-safe, flexible, and arbitrarily granular control over log management and configuration. It is modelled after the Java log4j API.log4cplus is an easy-to-use C + + logging API. log4cplu ...

Posted by scottd on Thu, 03 Feb 2022 00:51:06 +0100

Introduction to OpenCV [C + + version]

OpenCV3.4.6 installation package (including contrib): https://pan.baidu.com/s/1KBD-fAO63p0s5ANYa5XcEQ Extraction code: p7j0resources: https://pan.baidu.com/s/1nkQ6iVV7IeeP4gTXvM_DyQ Extraction code: ypvt Chapter1 reading pictures / videos / cameras Read picture from file modularfunctionimgcodecsImage file reading and writingimgprocI ...

Posted by borabora12 on Thu, 03 Feb 2022 00:41:31 +0100

Novice queue (example)

Queue learning can be compared to stack learning. Queue is an important data structure to realize breadth first search.   queue<int> aa; //Define a queue -Basic operation of queue—— aa.front() //Returns the first element of the queue aa.back() //Returns the last element of the queue aa.empty() //Returns true if the qu ...

Posted by BlaineSch on Wed, 02 Feb 2022 22:29:50 +0100

c + + lesson 5 ~ special members

catalogue const member static member Friends this pointer and explicit const member const data member const type variables cannot be modified and are in read-only mode It must be initialized in the form of initialization parameter list const member function In terms of writing, const is written after the function A constant member f ...

Posted by 7awaka on Wed, 02 Feb 2022 21:36:28 +0100

Advanced pointer

Some error points about pointers: The address of the first element is passed, not the whole array.   About pointer printing: You can use an array or a pointer to print. The pointer will look for the last '\ 0' as the end.   The first dereference print is c. the following print is abcdef It cannot be modif ...

Posted by juancarlosc on Wed, 02 Feb 2022 20:20:23 +0100

C + + 1 | from C to C++

1, From C to C++ 1. Quote Before talking about quotation, first talk about the familiar C language, and then transfer from C to C + +. This can not only consolidate C knowledge, but also easily understand C + +. Example 1. Numerical exchange Exchange the values of a and b There are many ways to realize exchange in C language: Another ...

Posted by noisenet on Wed, 02 Feb 2022 17:21:29 +0100

C + + improving programming -- STL

First acquaintance with STL The birth of STL For a long time, the software industry has been hoping to build something that can be reused; The object-oriented and generic programming idea of C + + aims to improve the reusability; In most cases, data structures and algorithms fail to have a set of standards, resulting in being forced to ...

Posted by ntnwwnet on Wed, 02 Feb 2022 16:53:02 +0100

C++ friend functions and friend classes (C++ friend keyword)

C++ friend functions and friend classes (C++ friend keyword) In C + +, a class can have members of public, protected and private attributes. Public members can be accessed through objects, and only functions in this class can access private members of this class. Now let's introduce an exception - friend. With the help of friends, member funct ...

Posted by cbj4074 on Wed, 02 Feb 2022 14:59:32 +0100

srs source code parsing srsrsrtmpconn:: do_ cycle()

After the client and server establish a tcp connection, srs will create an srsrrtmpconn object, start a thread, and eventually call this function. srs uses multiple coroutines. So the thread I'm talking about in srs is a coroutine. When there is no special description later, threads are coroutines. The original text of this function is as follo ...

Posted by NoMansLand on Wed, 02 Feb 2022 13:15:35 +0100

Using Libuv thread pool through N-API

Node.js is not suitable for processing time-consuming operations, which has always been a problem. Therefore, node JS provides three solutions. 1 subprocess 2 sub thread 3 Libuv thread pool The first two are more efficient because we only need to write js. But there are also some disadvantages 1. Cost of executing js 2. Although Libuv threa ...

Posted by BMurtagh on Wed, 02 Feb 2022 11:43:04 +0100