The issue of C + + relief

N (n < 20) people stand in a circle, and the number is 1~n anticlockwise. There are two officials. A counts counter clockwise from 1, and B counts clockwise from n. In each round, the number of officials a is k, and the number of officials B is m. The next person (1 or 2) selected by the official leaves the team. Input n, K, m to output the ...

Posted by dylan001 on Thu, 17 Oct 2019 16:54:23 +0200

vscode develops ROS-custom messages

Custom message ROS message Custom message Generate message Modify package.xml file Modify the CMakeLists.txt file Create Publishers and Subscribers Compile and run Epilogue ROS message 1. Simply put, the message of ROS is similar to the st ...

Posted by Fabis94 on Wed, 11 Sep 2019 07:25:47 +0200

A Review of Some C Language Knowledge Points Learned in Student Age

Articles Catalogue Pointer A Preface Two examples Three Summaries Pointer A Preface Following the previous article, the pointer in C language is reviewed and summarized. The examples in this paper are all my pure manual input, compiled an ...

Posted by sinter4911 on Tue, 10 Sep 2019 12:48:20 +0200

boost format usage details

Sketch Programming often encounters the need to format the data used, such as generating strings to record logs, generating complete data sent to the network, and so on. It may be necessary to format int, string, char, etc. Common methods include ...

Posted by mesh2005 on Tue, 10 Sep 2019 08:50:20 +0200

C65507;# Equal function and operator'='(originally released csdn, October 15, 2017, 20:39:26)

1,==,!=,<,>,<= and >= operators are comparison operators. The description of comparison operators in the Chinese version of C Language Specification 5.0 is as follows: 2. General Type System 3. Value Type Equal Function and Operator'=' 3.1. Common types such as int, float, double, decimal, etc. inherit from ValueType, but they rew ...

Posted by Spartan 117 on Fri, 06 Sep 2019 16:40:44 +0200

1.1 Sort-Inner Sort

Classification of 0 sort Stability and Instability: Is the Relative Position of Equal Numbers Changing Internal and External Sorting: Whether to Use External Storage 1 insertion sort Ideas: Starting with the first element, build an ordered ord ...

Posted by fortnox007 on Thu, 05 Sep 2019 09:24:36 +0200

The Basic Algorithms of Graphs and Their Implementation in C Language

data structure There are two kinds of data structure of "graph": Adjacency table The adjacency table is suitable for sparse graphs (the number of edges is far less than the number of vertices). Its abstract description is as follows:The graph above is an undirected graph with four vertices. Four vertices V0, V1, V2 and V3 are accessed ...

Posted by nevynev on Wed, 14 Aug 2019 12:22:15 +0200

[Analysis of C++11] std::function and std::bind

Catalog [Analysis of C++11] std::function and std::bind std::function callable object wrapper std::function basic usage std::function/std::bind and some thoughts on abstract factory and factory method [Analysis of C++11] std::function and std::bind std::function callable object wrapper C+ ...

Posted by JimD on Sat, 03 Aug 2019 05:46:30 +0200

OpenCV Image Processing-Mat Object Common Method

OpenCV Image Processing-Mat Object Common Method Preface Mat object and IplImage object Common constructors for Mat objects Common Methods of Mat Objects Preface The environment used in this article is: Qt5.11 + OpenCV3.4.6 Environment Installation Reference Document: https://blog.csdn.net/z6348 ...

Posted by pwnuspoints on Tue, 30 Jul 2019 06:28:17 +0200

Are you sure you don't want to know the principle of Redis jump meter?

Why Choose Jump TableAt present, the commonly used balanced data structures are: B tree, red-black tree, AVL tree, Splay Tree, Treep and so on. Imagine giving you a sketch paper, a pen, an editor. Can you instantly implement a red-black tree, or an AVL tree? It's hard. It takes time. It takes a lot of details. It's a lot of trouble to refer to ...

Posted by songwind on Sun, 28 Jul 2019 05:30:58 +0200