Detailed notes of C language

The meaning of i + + equihyphenation ++i i Add 1 and then participate in other operations --i i Participate in other operations after subtracting 1 i++ i After participating in the operation, i The value of is increased by 1 i-- i After participating in the operation, i The value of is subtracted by 1 eg: i=5; ...

Posted by wxflint on Tue, 04 Jan 2022 12:02:29 +0100

A little curiosity about linux: linux startup process

Always curious, how does the operating system work? We know how normal programming makes the code run, but those are high-level things. Later on, you will feel like a castle in the air, or someone has paved a lot of truth for you, but you know nothing about it.   1. Confusion of operating system Of course, I don't really know anything. Because ...

Posted by teddirez on Tue, 04 Jan 2022 10:42:47 +0100

C language -- string and string function

String function The C library provides many functions for processing strings. These function prototypes are in string H header file. strlen() function The strlen() function counts the length of a string. Example: #include<stdio.h> #include<string.h> int main(void) { char str[] = "This is a string."; printf("str has %d cha ...

Posted by JesuZ on Tue, 04 Jan 2022 08:52:05 +0100

C++_Primer_ Study notes_ Chapter 19 (special tools and technologies)

Chapter 19 (special tools and technologies) /1. Control memory allocation 1). Standard memory management mechanisms cannot be applied directly. Some applications need to customize the details of memory allocation, such as using the keyword new to place objects in a specific memory space.In order to achieve this goal, we need to overload the ...

Posted by wayz1229 on Tue, 04 Jan 2022 06:46:57 +0100

Introduction to pattern recognition (Experiment 2) image simplification C-means method maximum and minimum distance method based on color clustering

Test requirements:     1. From the files in the "experimental images" directory, select 2 as the experimental data. For each selected image, each clustering algorithm (maximum and minimum distance method, C-means method) and each given image are used a. clustering algorithm is used to cluster the (R, G, B) color vect ...

Posted by mandred on Tue, 04 Jan 2022 00:11:11 +0100

C-4: loading texture on cube

Operation requirements: 1. Three texture filtering methods are used to load textures (linear sampling, mipmap and nearest point sampling); 2. The image loaded with texture can be set by yourself; 3. The texture of each face is different; 4. The mouse or keyboard controls the switching of texture filtering methods. Initialize OpenGL Sa ...

Posted by lurius on Mon, 03 Jan 2022 22:03:14 +0100

C Language Learning Notes (14) - Pointer Programming

Catalog 14.1 Pointer Overview 14.2 Definition and use of pointer variables 14.2.1 Define pointer variables 14.2.2 Use pointer variables 14.3 Pointer and Array 14.3.1 Pointer and 1-D Array 14.3.2 Pointer and 2-D Array 14.3.3 Pointer and String 14.3.4 Pointer Array 14.4 Pointer as function parameter 14.4.1 Simple pointer variable as fu ...

Posted by AliceH on Mon, 03 Jan 2022 20:56:33 +0100

Introduction to C language single linked list (with examples)

"Ctrl AC! Together AC!" catalogue preface: Definition and node of single linked list: Definition of single linked list: Structure of single linked list node: Establishment of single linked list: Insert a new node with data x into the single linked list: Create linked list by tail interpolation: Traversal of single linked list ...

Posted by DirtySnipe on Mon, 03 Jan 2022 13:08:26 +0100

The number of characters, words and total rows in the C language statistics file

Count the number of characters, words and total rows of the file, including: Number of characters and words per lineThe total number of characters, words, and total rows of the file be careful: White space characters (spaces and tab indents) are not included in the total number of characters;Words are separated by spaces;Do not consider a wo ...

Posted by rbastien on Mon, 03 Jan 2022 07:54:50 +0100

Question 4 C of PTA 2022

preface Start 2022 and participate in PTA new year challenge: I'm really a konjac. Really, I just know I'm a konjac. I didn't expect that I'm so weak... So weak that I want to scold myself: You confused vegetable dog who can't even solve the problem! Don't settle down, Deep Learning!!! The lessons learned are summarized as follows: Limit ...

Posted by Codewarrior123 on Mon, 03 Jan 2022 05:23:22 +0100