C++. Page 3

Android P HIDL demo code writing (original)

Previous articles have analyzed the registration and invocation of HIDL service, and this article summarizes how to writ...
7:08 7 May 2020

LOJ ා 115. Upper and lower bound feasible flow of passive sink

#115. Passive sink has upper and lower bound feasible flow describe ...
10:58 5 May 2020

C++ Papers promised me not to go anywhere else if/else?

Learn English one sentence a day and make a little progress every day: "Without purpose, the days would have ended, as ...
0:46 15 February 2020

BZOJ3170: [Tjoi2013] squirrel Party (Chebyshev distance to Manhattan)

Time Limit: 10 Sec Memory Limit: 128 MBSubmit: 1524 Solved: 803[Submit][Status][Discuss] ...
16:25 13 February 2020

P3366 minimum spanning tree [template + Kruskal explanation]

The array size of this question is very important Algorit...
13:49 13 February 2020

Open source virtual machine Bochs installation and stepping on the pit

Because you want to write a simple operating system, you need to install a virtual machine to simulate the hardware. VMw...
4:26 11 February 2020

C + + Learning (18) (C language part) pointer 2

Pointer1. Overview of pointers What is the pointer? Pointer is an address is a constant Int int a a is a variable What does the pointer do? Easy to us...
14:06 31 January 2020

Exception handling in [C + +] 64 μ C + +

C + + exception handling C + + has built-in exception handling syntax element try... Catch try statement handles normal logic code catch statement pro...
18:17 4 December 2019

bzoj4818 SDOI2017 sequence count

Title Link thinking First of all, consider the scheme number of violence \ (dp \), \ (f[i][j] \) represents the number of first \ (I \), the sum of nu...
18:01 4 December 2019

The usage of c/c + + overloaded operator standard library function

The usage of overloaded operator standard library function Question: is int(int, int) a common type?? For example, function: int add(int a, int b); Fo...
9:30 4 December 2019

#The way to brush questions with leetcode 40 combination sum II

Given an array candidates and a target number target, find out all combinations of candidates that can make numbers and targets.Each number in candida...
7:01 4 December 2019

C pointer principle (15)-C pointer basis

Simple C pointer Pointer to integer and pointer to pointer myhaspl@myhaspl:~ % vim test1.c #include <stdio.h> int main(void){ int x; x=128; int...
6:08 4 December 2019

Echo server C + + 4-UDP connect version

Calling the connect function for a UDP socket does not establish a connection with the UDP socket of the other party, but registers the destination IP...
1:07 4 December 2019

[tree cover] [learning notes]

thought Tree cover tree, like his name, is a tree cover another tree. Use an outer tree to maintain something like intervals. Then each node of the ou...
19:44 3 December 2019

LOJ Chen 6030. "Yali training 2017 Day1" matrix (greedy construction)

meaning of the title link Sol I don't know how to make the series It is not difficult to observe several properties: The best strategy must be to...
14:02 3 December 2019

Dictionary and hash table to implement Redis source code

Through the study of "Redis design and implementation", I intend to implement a "Redis source code" as my own learning record. Stu...
10:09 3 December 2019

Luogu P3346 [ZJOI2015] fantasy land favored by gods (generalized suffix automata)

meaning of the title Title Link Sol Board questions of generalized SAM. First, if the leaf node is no more than 20, then the subtree whose root is eac...
17:55 2 December 2019

Reconstruction of P4198 building in Luogu (line section tree)

meaning of the title Title Link Sol Don't ask me why I sent it twice just to cheat traffic The line tree method of this question is very wonderfu...
17:46 2 December 2019

[C + +] 42 μ type conversion function

Question:Can class types be converted to normal types? #include <iostream> using namespace std; class Test { }; int main() { Test t; int i = 0; ...
17:00 2 December 2019

A detailed explanation of Z-arrangement (C + +)

A detailed explanation of the problem of zigzag arrangement (C + +): Problem Description: given a matrix matrix, output the content of matrix after Z-...
15:40 2 December 2019

Luogu P3246 [HNOI2016] sequence (offline differential tree array)

meaning of the title Title Link Sol It seems that a different method has been worked out from the solution of the question (however, it still exploded...
12:25 2 December 2019

Logu P4063 [JXOI2017] series (dp)

meaning of the title Title Link Sol It's not hard to think about this problem, but it's very troublesome to write, and then I went to look a...
9:34 2 December 2019

Logue P4424 [HNOI/AHOI2018] treasure hunt game (thinking problem)

meaning of the title Title Link Sol Fairy question Orz Orz zbq searches 70.. Consider the nature of "and" and "or" \(0 \& 0 = ...
9:11 2 December 2019

X264 application engineering

In the next few blogs, learn the implementation process of X264. The analysis of source code refers to Raytheon's blog, thank you Raytheon! Blog ...
10:03 30 November 2019

PCL uses RANSAC to fit segmentation plane by itself

Using PCL segmentation algorithm pcl::SACSegmentation<pcl::PointXYZ> seg; , do not use the normal parameters, only get the segmentation patch ac...
16:31 29 November 2019

Luogu - P1018 product maximum problem solution

Original text: https://www.luogu.org/problemnew/solution/P1018?page=7 Title: P1018 [maximum product] Preface: In theory, the positive solution of this...
10:42 10 November 2019

C + + -- initialization list

Q: is the definition of the following program class legal? #include <iostream> using namespace std; class Test { private: const int ci; public:...
15:57 7 November 2019

[NOI2006] network charge

An interesting question for thieves. Think about converting the cost into something. Watch If we define the state of leaf node ,}, the state of non le...
14:33 5 November 2019

Traversal of P3961 graph in Luogu

Source of topic There are many ways to do this problem. I'll just mention one here It's the Archmage. Reverse edge building can be used, sta...
13:03 5 November 2019

HDU2023 average - biaobiao88

Title Link: http://acm.hdu.edu.cn/showproblem.php?pid=2023 Average performance Problem Description Suppose that there are n (n < = 50) students in ...
9:55 5 November 2019