C language learning notes 11

character string It is essentially a character array Definition method: #include <stdio.h> int main() { //The first way to define a string is analogous to an array of integers char str[5] = {'a','b','c','d','e'}; for(int i=0;i<sizeof(str)/sizeof(str[0]);i++){ printf("%c",str[i]); } putchar('\n'); //The second way char st ...

Posted by samohtwerdna on Sat, 25 Sep 2021 21:27:39 -0700

Multithreaded programming

1. What is a thread? Source code - compile and link - > program - load into memory - > process                                        |                                  |                                     Documents         &nbs ...

Posted by rubik on Sat, 25 Sep 2021 21:13:16 -0700

Implementation of C/C + + linear table

Novice way out, please consult!! Definition of linear table: linear list is the most basic, simplest and most commonly used data structure. Linear table data elements The relationship between is a one-to-one relationship, that is, except for the first and last data elements, other data elements are connected head to tail, but this only applie ...

Posted by Saviola on Sat, 25 Sep 2021 20:56:39 -0700

Detailed explanation of C/C++ typedef usage

1, Introduction to typedef Four common uses of typedef: 1. Alias a defined variable type 2. Define function pointer type 3. Define array pointer type 4. Define a new simple alias for complex declarations To sum up, "the type is the same with or without typedef". This sentence can be understood as follows: If it is an array before t ...

Posted by cmpennington on Sat, 25 Sep 2021 18:13:58 -0700

Detailed explanation of C language operators

Pay attention to one button three times (don't be sure next time) Hello, bald men. Let's study operators together today! Key points of this chapter Introduction to various operators.Expression evaluation Operator Classification: arithmetic operator Shift operators Bitwise operators Assignment operator unary operator Relatio ...

Posted by nahydy on Sat, 25 Sep 2021 11:56:53 -0700

Application of Code Technology in CedarX Reference CdxContainerOf

Preface CedarX is an open source multimedia SDK of Shizhi Technologies. The invocation of its decoding is based on self-developed decoder interface and MediaPlayer interface can be docked up. This paper records and analyses the application of code technology in C language in its source code for reference only. Source Referencehttps://github.co ...

Posted by Felex on Sat, 25 Sep 2021 10:22:54 -0700

C language computing is compiled on the day of the year and under Linux

catalogue 1, C language calculates the day of a year 2, Compiling C language program under Linux   1, C language calculates the day of a year   The general idea of this program is: day = (requested date month - 1) * 31 + date of requested date - redundant days (because the days of each month are different, the previous * 31 will m ...

Posted by lbaxterl on Sat, 25 Sep 2021 04:10:33 -0700

Structure Consortium

Make a little progress every day!   What is a structure? A structure is a data set composed of the same or different data Before that, learn some little knowledge 2.1 only structure variables allocate addresses, and the definition of structure does not allocate space. 2.2 the definition of each member in the structure is the s ...

Posted by Neomech on Sat, 25 Sep 2021 00:41:24 -0700

Discrete explanation and unique principle analysis

Discretization Principle and application: When the value range of a given data is large, but the data is very scattered, the magnitude of useful data is far lower than the value range. For example, from − 1 0 9 ...

Posted by nawal on Fri, 24 Sep 2021 20:25:43 -0700

[C language] play with structures -- things about structures!

preface C language provides different data types, such as int, float, double, char, etc. different types determine the space and expression of a variable in memory. However, when we define a person, it is difficult to define different attributes of a person with the same data type, because people's height, age, weight and other attribute ...

Posted by jawaidpk on Fri, 24 Sep 2021 19:32:36 -0700