C Programming Example
1
Arbitrary input of three integers, programming to sort the three integers from small to large. Implementation process:
(1) Define the data type. In this example, a, b, c and t are all basic integers.
(2) Use the input function to obtain any three values and assign them to a, b and c.
(3) Use the if statement to make conditional judgment. ...
Posted by febrarian on Tue, 25 Jan 2022 00:06:17 +0100
CMake external project installation boost
This is the command used to manage third-party libraries in CMake. The CMake version used in this article is 3.22.1. The text introduces the CMake command of ExternalProject, and boost is installed based on this.
Official documents: https://cmake.org/cmake/help/v3.22/module/ExternalProject.html
This library needs to include (external project) ...
Posted by skyagh on Mon, 24 Jan 2022 22:31:03 +0100
Use of move in C + +
1. Introduction When learning to use move, we should first distinguish the left value and right value in C + +. Because the distinction between left value and right value is complex, we can adopt a simplified view, which will meet our purpose to a great extent. Lvalue The simplest approach is to treat lvalues (also known as locator values) as f ...
Posted by sONOCOOLO on Mon, 24 Jan 2022 21:47:18 +0100
[GDOI2008] color ball game
General idea of the topic
given
n
∗
m
n*m
The start state and target state of n * m. The state contains only three characters R, B and G. two operations are given, respectively: 1. Select one
...
Posted by trixiesirisheyes on Mon, 24 Jan 2022 19:41:56 +0100
[daily force deduction 29] symmetric binary tree
1, Title [LeetCode-101]
Give you the root node of a binary tree, root, and check whether it is axisymmetric.
Example 1:
Input: root = [1,2,2,3,4,4,3]
Output: true
Example 2:
Input: root = [1,2,2,null,3,null,3]
Output: false
Tips:
The number of nodes in the tree is in the range [1, 1000]-100 <= Node.val <= 100
A ...
Posted by K3nnnn on Mon, 24 Jan 2022 17:38:31 +0100
Basic use of Jetson nano opencv
preface:
In the previous jetson nano article, we introduced some ideas and materials for learning. Today, we will continue to share an article on using opencv in jetson nano.
The full name of OpenCV is Open Source Computer Vision Library, which is a cross platform computer vision library. Opencv is initiated and developed by Intel Corporation ...
Posted by koopkoop on Mon, 24 Jan 2022 17:22:25 +0100
C + + learning path - object oriented - destructor
definition
Destructors, also known as destructors, are called automatically when objects are destroyed. They are generally used to clean up objects. There is no return value, no parameter, and cannot be overloaded. There is only one destructor, unlike constructors, which can be overloaded. In the following program, ~ Person() function is t ...
Posted by harvey on Mon, 24 Jan 2022 16:48:07 +0100
[Hou Jie C + +] (memory management)
Lecture 1: primitives
Four kinds of memory allocation and release
During programming, the memory can be operated directly or indirectly through the above methods. The following describes four C + + memory operation methods: 1.::operator new() calls malloc,::operator delete() calls free
2. malloc and new can usually be used to allocat ...
Posted by peterjoel on Mon, 24 Jan 2022 14:58:30 +0100
Linux driver practice: how does the interrupt processing function [send a signal] to the application layer?
Author: Daoge, 10 + year embedded development veteran, focusing on: C/C + +, embedded and Linux.
Pay attention to the official account below, reply to books, get classic books in Linux and embedded field. Reply to [PDF] to obtain all original articles (PDF format).
catalogue
Other people's experience, our ladder!
Hello, I'm brother D ...
Posted by BSkopnik on Mon, 24 Jan 2022 14:45:37 +0100
One question per day (the seventh programming question in the second provincial competition of group B of C / C + + in 2020)
Here is the title of the blue bridge cup over the years. Welcome to pay attention to me
[problem description]
During the Spring Festival in 2020, a special date has attracted everyone's attention: February 2, 2020. Because if this date is written in the format of "yyyymmdd", it is 20200202, which is exactly a palindrome number. We ...
Posted by adamriley on Mon, 24 Jan 2022 12:07:42 +0100