Right value reference and its function
I. what are left and right values?
Before mastering the right value reference, you must first know what the right value is. Since there is an right value, there must be an left value. When we assign a=b, the value that can be placed to the left of the = sign is the left value, and the reverse is the right value.
So what value can be used as a ...
Posted by davey10101 on Sun, 16 Jan 2022 02:37:26 +0100
Algorithm basic enumeration
t1 fake coin poj1013
Idea:
First of all, you should know that the subject already knows the weighing results, and each input is three groups of data, so define three character arrays to store three groups of data of the left balance, three groups of data of the right balance and three groups of data of the weighing results, and then define an ...
Posted by bizshop on Sat, 15 Jan 2022 23:50:47 +0100
Joseph problem (array + queue + formula iteration + recursion)
Joseph problem (array + queue + formula iteration + recursion)
The Joseph Ring problem originates from a Jewish story: The Romans captured the bridge Tapat, and 41 people hid in a cave to escape the catastrophe. Among the 41 people, the historian Josephus (Joseph) and one of his friends. The remaining 39 people decided to commit collective sui ...
Posted by QbertsBrother on Sat, 15 Jan 2022 22:59:10 +0100
Analysis of Luogu cf803a maximum binary matrix
Source of original title: CodeForces 803A
Title Description:
You are given matrix with n rows and n columns filled with zeroes. You should put k ones in it in such a way that the resulting matrix is symmetrical with respect to the main diagonal (the diagonal that goes from the top left to the bottom right corner) and is lexicographical ...
Posted by runsum on Sat, 15 Jan 2022 18:31:23 +0100
Detailed solution to bit operation - 2018 CCPC Guilin station: D. Bits Reverse
Bit operation problem solution
Question source: 2018 CCPC Guilin station: D. Bits Reverse
Title Description
Topic meaning understanding
input
T
T
T groups of data, each group of data contains two integers
...
Posted by daria on Sat, 15 Jan 2022 16:01:04 +0100
C + + calls the DLL Dynamic link library generated by Matlab for mixed programming (VS2010+Matlab2012a)
Matlab has great advantages in data analysis when processing images. Because other programming languages, such as C + +, are generally used when docking with enterprises, Matlab functions can be compiled into dll files and called in C + +. There will be many errors when using it for the first time, and many errors can not be modified by the pro ...
Posted by tulleh on Sat, 15 Jan 2022 15:45:55 +0100
New features of C++11/14 -- right value reference, mobile semantics and perfect forwarding
1. Right value reference
C + + introduces R-value reference and mobile semantics, which can avoid unnecessary replication and improve program performance.
(1) Left and right values
All in C + + must belong to one of left value and right value.
Lvalue: refers to the persistent object that still exists after the end of the expression. Rig ...
Posted by Stalingrad on Sat, 15 Jan 2022 13:50:53 +0100
Operator explanation
1, Arithmetic operator
There are five arithmetic operators: + - * /%. Because the operator has two operands. Also known as binocular operator
For the / operator, both operands are integers and perform integer division. Performs floating-point division when at least one operand is floating-point
#include <stdio.h>
int main() {
int ...
Posted by samusk on Sat, 15 Jan 2022 13:11:41 +0100
Why should C + + destructors be virtual functions (learning notes)
1. Destructor cannot be overloaded
Reason: the destructor cannot be overloaded because it can only have one and cannot take parameters.
2. Why is the destructor of the base class a virtual function?
When implementing polymorphism, when the derived class is operated with the base class, the situation that only the base class is destructed ...
Posted by jaquito13 on Sat, 15 Jan 2022 12:37:23 +0100
QT from entry to soil - TCP/IP network communication (and file transfer)
**
introduction
** TCP/IP communication (i.e. SOCKET communication) is the communication established through TCP/IP protocol on the basis of following the four-tier architecture of ISO/OSI model by connecting the Server end of the Server and the Client end of the Client through the network cable. The controller can be set as Server or Client. ...
Posted by ckdoublenecks on Sat, 15 Jan 2022 11:39:23 +0100