Data structure (C language version) -- sorting notes

1. Basic concepts of sorting Sorting is an operation often carried out in the computer. Its purpose is to adjust a group of "unordered" record sequences to "ordered" record sequences. The purpose of sorting is to facilitate searching. If the whole sorting process can be completed without accessing external memory, th ...

Added by zoidberg on Sun, 20 Feb 2022 19:35:22 +0200

Linux fork system call

In Linux, the fork system call can be used to create a child process. The child process will inherit most of the properties of the parent process, and then the child process will call the exec cluster function to run other programs. Let's take a concrete example to illustrate the relationship between parent-child processes #include <stdio.h ...

Added by BioBob on Sun, 20 Feb 2022 19:25:49 +0200

Data structure (C language version) -- find notes

1. Basic concepts of search Lookup table A lookup table is a collection of data elements (or records) of the same type. keyword A keyword is the value of a data item in a data element (or record), which can be used to identify a data element (or record). If this keyword can uniquely identify a record, it is called the primary keyword ...

Added by Jack Sparrow on Sun, 20 Feb 2022 16:28:34 +0200

Data structure (C language version) -- diagram notes

1. Definitions and basic terms of drawings ①. Definition of graph Graph G is composed of two sets V and E, marked as G=(V,E), where V is the finite nonempty set of vertices, e is the finite set of vertex pairs in V, and these vertex pairs are symmetrical as edges. V(G) and E(G) usually represent the vertex set and edge set of graph G re ...

Added by theelectricwiz on Sun, 20 Feb 2022 16:17:45 +0200

Design and implementation of port scanning tool based on C language

lfy: Go realizes four scanning modes and comparisonjyx: C realizes four scanning modes and comparison 1, Technical principle Port scanning technology sends detection data packets to the TCP/UDP port of the target system, records the response of the target system, and analyzes the response to view the services of the system in monitoring or ru ...

Added by clearstatcache on Sun, 20 Feb 2022 12:41:51 +0200

C language classic 100 questions-1

C language classic 100 questions-1 C language classic 100 questions (1-10) Topic 1: there are 1, 2, 3 and 4 numbers. How many different three digits can be formed without repeated numbers? How much is it? Program analysis: the numbers that can be filled in hundreds, tens and single digits are 1, 2, 3 and 4. After forming all permutati ...

Added by killsite on Sun, 20 Feb 2022 03:03:14 +0200

c language string function and memory function

Fill in the notes for a holiday. Maybe more than ten or twenty articles will be published this month. What is a string "hello world.\n" This string of characters enclosed in double quotation marks is called string literal, or string for short. The processing of characters and strings in C language is very frequent, but C language it ...

Added by acrayne on Sun, 20 Feb 2022 02:33:56 +0200

Linux network programming - VII

1. Preparation for web server development In order to write a web server, we need to learn how to write html pages and master some knowledge of http protocol. These two parts will be introduced next. After these two preparations, you also need to know what is the communication process of the web server? We also need to think about how to s ...

Added by 758 on Sun, 20 Feb 2022 00:39:40 +0200

Use of custom data types struct, enum and union

1, Structure: a set of data representing a specific meaning is always stored Features: it encapsulates data (function encapsulates function) Benefits: 1 Improve code readability 2. Improve data usability 3. Improve code maintainability Structure definition format: struct +Structure name { Element 1; ..... } Structure definition structure va ...

Added by expertis on Sat, 19 Feb 2022 23:22:10 +0200

LCOM: lightweight component object model

[Abstract] component object model (COM) is the first programming model introduced by Microsoft. It divides the software into two independent parts: interface and implementation. The abstract functions are defined by the interface. An implementation module may implement multiple interfaces to provide actual functions. In this way, in a large-sca ...

Added by the max on Sat, 19 Feb 2022 19:11:37 +0200