Summary of C++ primer knowledge points (basic part - 6000 summary of variables and basic types)
1, Input and output
C + + language does not define any input and output statements, but provides a comprehensive standard library to provide IO mechanism.
iostream contains two basic types: istream and ostream, representing input and output respectively.
cin(istream) is the standard input; cout(ostram) is the standard output; cerr and clog ( ...
Added by eirikol on Wed, 29 Sep 2021 00:18:45 +0300
Understanding and application of pointer reference
1. Pointer
The pointer variable can be used to save the address (usually understood as an address)
When we read a pointer, we have to know two things
1) Pointer type
From a syntactic point of view, you just remove the pointer name from the pointer declaration statement, and the rest is the type of the pointer. This is the type of the pointe ...
Added by Simon Mayer on Tue, 28 Sep 2021 13:14:02 +0300
[C language] file operation
preface
When we write a piece of code to process the data, the data is stored in memory. When the program exits, the data does not exist. When the program runs next time, the data must be re entered, which involves the problem of data persistence. The general methods of data persistence include storing the data in disk files Stored in th ...
Added by ferhanz on Tue, 28 Sep 2021 10:52:02 +0300
C/C + + practice - True and false
In the C11 standard document, the operation resu lt s of the relational operators <, >, < =, > = are specified. When true, it returns 1, when false, it returns 0, and the return type is integer.
Operator = == Similar to relational operators, it returns 1 or 0 except that the operation priority is low.
The definition of t ...
Added by gregtel on Sun, 26 Sep 2021 21:28:11 +0300
ApproximateVoxelGrid and VoxelGrid details
1. Preface
The online introduction of these two points mainly means that: Approximate is the center of the point cloud, and VoxelGrid is the center of gravity of the point cloud, but the point cloud itself has no quality and other attributes that can calculate the center of gravity of the point cloud, that is, the center of gravity and cen ...
Added by ifuschini on Sun, 26 Sep 2021 04:32:26 +0300
Detailed explanation of three programming questions in Huawei's 2021 written test
catalogue
2021 Huawei written test first
Cache forwarding packet statistics (100%)
Problem solving ideas:
Reference code:
2021 Huawei written examination question 2
Find instance knowledge in the knowledge map (100%)
Problem solving ideas:
Reference code:
2021 Huawei written test question 3
Lake connectivity (100%)
Problem sol ...
Added by madspof on Sat, 25 Sep 2021 21:59:59 +0300
[C + +] use and Simulation of STL: list
1, list introduction
list is a sequential container that can be inserted and deleted at any position within the constant range with an efficiency of O(1), and the container can iterate back and forth. The bottom layer of the list is a two-way linked list structure. Each element in the two-way linked list is stored in independent nodes th ...
Added by luked23 on Sat, 25 Sep 2021 21:45:01 +0300
C + + high precision algorithm
High precision addition
Add bit by bit. Pay attention to the storage and carry. After adding the small number, add the rest of the large number. Pay attention that the leading zero sum is equal to 0
// High precision addition
#include<iostream>
#include<string>
using namespace std;
int res[10000001];//Array of record results
str ...
Added by cheatboy00 on Sat, 25 Sep 2021 14:53:40 +0300
Data structures and algorithms
#Data structure and algorithm Introduction
There is no best algorithm in the world, only the most suitable algorithm
Logical structure
Physical structure
Talk about algorithm
Algorithm time complexity
Just tell you to pay attention to the highest order, then ignore the constant product of constan ...
Added by bradlybrown on Fri, 24 Sep 2021 12:39:26 +0300
C + + reads and writes bmp diagram and displays images
Preparatory knowledge
bitmap-file header
typedef struct tagBITMAPFILEHEADER {
WORD bfType; //File type, must be BM(1-2 bytes)
DWORD bfSize; //File size, in bytes (3-6 bytes, low order first)
WORD bfReserved1; //Reserved word, must be 0 (7-8 bytes)
WORD bfReserved2; //Reserved word, ...
Added by chris davies on Wed, 22 Sep 2021 20:12:22 +0300