Hello C -- pointers and functions
Pointers make a great contribution to the function of the function. Pointers can pass data to the function and allow the function to modify the data. The function of pointer to function mainly has two aspects: passing pointer to function and declaring function pointer.
1, Stack and heap of programs
The stack and heap of programs are the run ...
Posted by MrPotatoes on Mon, 21 Feb 2022 04:12:10 +0100
Hello C -- use of bit operation
ARM is the unified addressing of memory and IO. There are many control registers in SoC. These control registers are set by bit operation of these registers to control peripheral functions. During the process of modifying some bits of the register, other bits cannot be modified.
1, Basis of bit operation
The basic bitwise operators of C lan ...
Posted by hillbilly928 on Mon, 21 Feb 2022 04:11:22 +0100
[C + + design mode] builder mode
***
Advantages of builder mode:
In the builder mode, the client does not need to know the internal composition details of the product, and separates the product itself from the product creation process, so that the same creation process can create different product objects;Different builders are independent of each other without any chain, ...
Posted by Hades on Mon, 21 Feb 2022 03:47:33 +0100
C + + Performance Optimization -- dynamic memory management
1, new/delete operator
C + + implements global new/new [] and delete/delete [] to improve the access and management of dynamic memory. operator new can be a member function or global function of a class. Generally, the C + + runtime provides default global new/new [] and delete/delete [] implementations. Applications can also use custom implem ...
Posted by KRAK_JOE on Mon, 21 Feb 2022 03:42:24 +0100
C + + Learning XIV. Advanced return object of class
preface
This article first summarizes the use of dynamic memory in classes, and then records the returned objects.
Class and dynamic memory summary
If new is used in the constructor to allocate dynamic memory, delete must be used in the destructor to free dynamic memory.There is only one destructor. Therefore, when there are multiple con ...
Posted by uknowho008 on Sun, 20 Feb 2022 20:25:26 +0100
Source code analysis of Sylar server framework configuration module
Source code analysis of Sylar server framework configuration module
Overall design of configuration module
Basic functions of a configuration module:
It supports defining / declaring configuration items, that is, generating an available configuration item when providing configuration name, type and optional default values. Since a c ...
Posted by auday1982 on Sun, 20 Feb 2022 19:38:22 +0100
c + + reading binary bin file
link ofstream is from memory to hard disk, and ifstream is from hard disk to memory. In fact, the so-called stream buffer is memory space In C + +, there is a stream class. All I/O is based on this "stream" class, including the file I/O we need to know 1. Inserter (< <)
Output data to the stream. For example, the system has a d ...
Posted by marcela1637 on Sun, 20 Feb 2022 19:14:51 +0100
vs2010+soui2+cfe3.3071 implement js call
preface
In the previous article The 90.6.0 version of vs2010+cef3 embeds cef3 into the mfc window , part of the windows of mfc are embedded into cef3; The following continuous test is based on the cef3 test under soui2. However, one of the pits learned after two days of testing that the version of cef3 used is too new (the latest at present), ...
Posted by plzhelpme on Sun, 20 Feb 2022 18:59:23 +0100
Blue Bridge Cup (C + +) two questions per day group A (questions 5-6 of 2018 provincial competition 2.20)
catalogue
Question 1: printing graphics
1. Meaning:
2. Solution:
3: Code:
Question 2: flight time
1. Meaning:
Input format:
Output format:
Input sample:
Output example:
2. Solution:
3. Code:
Question 1: printing graphics
1. Meaning:
The following program will draw a fractal diagram (that is, the overall and local self si ...
Posted by Aptana on Sun, 20 Feb 2022 18:43:30 +0100
Introduction to C + + language learning -- linked list, queue and stack
[PS] I learned it in school, and I have learned it in Xinjing before. This blog is only used as personal knowledge sorting and backup. If there are mistakes, please help point out, thank you!
The citation of this article is basically from Starting Out with C++ From Control Structures Through Objects 8th Global Edition
1. Linked List
1.1 ...
Posted by Solar on Sun, 20 Feb 2022 18:39:26 +0100