Linux C language plays linked list in mmap mapping

1, Role of mmap mmap function is actually mapping physical address to virtual address, which can be operated by the process in user space, and plays the role of virtual real address conversion; For a simple example, if some records are easy to change and you want to keep them after the program exits, you can use mmap at this time. After resta ...

Posted by gimzo on Sat, 18 Sep 2021 01:23:28 +0200

Data structure - stack and queue

Link, data structure - stack and queue (2) stack Data structure - stack and queue (II) stack data structure Stack and queue (II) queue Mind map 3.2.1 basic concept of queue 1. Concept A Queue is a linear table that can only be inserted at one end and deleted at the other end Queue is a special linear structure. It only allows de ...

Posted by mdnghtblue on Fri, 17 Sep 2021 21:50:53 +0200

C + + array and array name problems (pointer, dereference)

1, Pointer 1.1 difference between pointer variable and ordinary variable Pointer: the essence of pointer is a variable. It has no essential difference from ordinary variables. Pointer integrity should be called pointer variable, referred to as pointer. It means pointing. The pointer itself is an object, and the pointer does not need to be ...

Posted by MarcAndreTalbot on Fri, 17 Sep 2021 04:52:07 +0200

2021-09-04 learning record of C++ Primer: Chapters 4, 5 and 6

Chapter 4 expressions 4.1 Foundation 4.1.1 basic concepts Function call is also a special operator, which has no limit on the number of operands. (1) Left and right values Simple induction: when an object is used as an R-value, the value (content) of the object is used; When an object is used as an lvalue, the identity (location in me ...

Posted by jenp on Fri, 17 Sep 2021 00:55:03 +0200

C-libev learning notes - event library source code Reading-1

features libev is a lightweight event driven library written in C language, which supports a variety of IO reuse interfaces. IO interfaces include: select, poll, epoll, kqueue, etc Supported events: ev_io; //IO read / write ev_stat; //File properties ev_signal;//signal ev_timer;//timer ev_periodic;//Absolute timer ev_child;//Subprocess ev_fo ...

Posted by flhtc on Mon, 13 Sep 2021 23:24:02 +0200

Algorithm design and analysis -- backtracking method

Algorithm design and analysis -- backtracking method © 1, Backtracking method 1. Definition In the solution space tree containing all solutions of the problem, according to the depth first search strategy, search the solution space tree from the root node (start node). When the backtracking method searches the solution space, two strat ...

Posted by focus310 on Sun, 12 Sep 2021 05:37:48 +0200

[C language library function] variable parameter va_start,va_arg,va_end,va_list, stdarg.h library details

Detailed explanation of variable parameters printf() is a function that we cannot avoid in programming. We studied the implementation principle of printf() and preliminarily understood that the printf() function uses putchar() to realize output in the library, but there is another problem that we didn't solve in the previous article, that is, ...

Posted by Krait on Fri, 10 Sep 2021 05:00:02 +0200

kuangbin topic 1. Search (low order)

A - chessboard problem https://vjudge.ppsucxtt.cn/contest/65959#problem/A Idea: whether dfs searches for different rows and columns, the main steps are the marking and release order of vis array. #include <iostream> #include <stdio.h> #define MAX 0x3f3f3f3f using namespace std; typedef long long ll; const int maxn = 10; int n, k, ...

Posted by Ashley Sheridan on Fri, 10 Sep 2021 03:04:21 +0200

C language - string sequential storage representation and basic operation implementation

Three storage representations of 1 string      String, i.e. string. It should be noted that there is no string data type in C language, but it is implemented as a data structure - "content limited linear table", and the concepts of empty string, blank string, string length, substring and main string are agreed [se ...

Posted by eatadi on Tue, 07 Sep 2021 05:01:29 +0200

2021-09-06 the fourth day of C language learning (cycle)

C control statement: loop This paper mainly studies the following contents: Keywords: for, while, do whileOperators: <, >, > =, < =, = =, + =, * =, - =, / =,%=Functions: fabs()C language has three loops: for, while, do whileUse relational operators to build expressions that control loopsOther Operators Loop common arraysWrite ...

Posted by digitalbart2k on Mon, 06 Sep 2021 21:27:58 +0200