C + + circular queue
Summary
A queue is actually a queue in real life. The people at the head of the queue go first and the newcomers line up at the end of the queue. First in, first out, last in, last out.The implementation of queue requires a team head pointer and a team tail pointer for entering and leaving the team. For circular queues, during initializati ...
Posted by Asperon on Mon, 13 Dec 2021 06:33:55 +0100
C language summary pointer (continuously updated)
Latest update time: December 2021 twelve Environment: vs2019, x86 compilation; 64 bit win10 Source code (including games) uploaded to
11, Pointer
11.1 what is the pointer
A pointer is actually an address. First, learn how memory addresses are numbered. Take a 32-bit machine as an example: 32 bits – 32 address lines – physical l ...
Posted by jackofalltrades on Mon, 13 Dec 2021 03:07:16 +0100
Interactive use and sharing of c/c + + and lua
preface:
In the process of embedded development, we will use some scripting tools to assist our work, such as shel or python, Lua, etc. today, I will share with you the interactive use of lua scripts I use in my work.
Author: conscience still exists
REAUTHORIZING authorization and onlookers: welcome to WeChat official account: Yu Linjun
O ...
Posted by timmy0320 on Sun, 12 Dec 2021 16:16:47 +0100
c++ 11 standard template (STL) STD:: set (III)
iterator
1. Returns an iterator that points to the first element of the container
std::set<Key,Compare,Allocator>::begin,
std::set<Key,Compare,Allocator>::cbegin
iterator begin(); (C++11 front)
iterator begin() noexcept; (C++11 rise)
const_iterator begin() const; ...
Posted by StewardManscat on Sun, 12 Dec 2021 16:11:53 +0100
Experiment 3 virtual storage management (C + + implementation of OPT, FIFO, LRU, LFU and NUR algorithm)
Experiment 3 virtual storage management
Experimental properties
Design
Recommended class hours
4 class hours
Experimental purpose
One of the main functions of storage management is to allocate space reasonably. Request paging storage management is a common virtual storage management technology.
The purpose of this experiment is to simula ...
Posted by Sgarissta on Sun, 12 Dec 2021 02:07:31 +0100
2022 South China Normal University C + + programming (918) postgraduate examination final points tips phase I
preface
Thanks to your love, I'm not a big man. Maybe many people don't understand why I want to share these materials selflessly. Isn't this helping competitors? In fact, it's not so. Because of your concern, I'll make my ideas public. Many mistakes I haven't made will be found and kindly pointed out to me at the same time, Everyone's correct ...
Posted by bing_crosby on Sat, 11 Dec 2021 14:09:38 +0100
Modify the lazy list using epoch based reclamation (EBR, a method of domain specific reclamation)
As mentioned earlier, the biggest hidden danger of lazy list is logical deletion, but there is no physical deletion problem. Therefore, EBR first solve d this problem to him.
I EBR modification
int parse_delete(intset_l_t *set, val_t val) {
node_l_t *pred, *curr;
int result, validated, isVal;
while(1) {
//Init
pred ...
Posted by jonmkim on Sat, 11 Dec 2021 07:53:27 +0100
Remote control project notes
Project introduction:
Complete the development of client (control end) + server (controlled end). The client mainly includes: acquisition of disk and file information; File download; Monitor, lock and unlock each other's screen, and the server realizes the function of automatic operation after startup.
Sorting of some codes:
1. Encap ...
Posted by countrygyrl on Sat, 11 Dec 2021 07:06:17 +0100
Chapter V summary
Example 5.1
Assuming that China's total population this year is 1.3 billion, if it increases by 2% per year, the annual population in 10 years from now will be calculated
#include<stdio.h>
#include<math.h>
int main()
{
int n = 13, year;
double number, rate = 0.02;
for (year = 1; year <= 10; year++)
{
number = n * pow( ...
Posted by er0x on Sat, 11 Dec 2021 04:07:01 +0100
C + + Advanced - AVL tree
catalogue
1, AVL tree
AVL tree concept
Definition of AVL tree node
AVL tree insertion
2, Rotation of AVL tree
Ll (right single rotation)
RR (left single rotation)
LR (first left single rotation and then right single rotation)
Rl (right single rotation first and then left single rotation)
3, Verification and deletion of AVL tree
Verif ...
Posted by Matt Phelps on Fri, 10 Dec 2021 17:41:56 +0100