Lesson 5 string

1. Basic knowledge 1. Characters and integers can be converted to each other, for example #include <iostream> using namespace std; int main() { char a1[] = {'C', '+', '+'}; cout <<"a1:" << a1 << " size:" << sizeof(a1) << endl; char a2[] = {'C', '+', '+', '\0'}; cout <<"a2:" << a2 <& ...

Added by XenoPhage on Fri, 24 Dec 2021 22:57:18 +0200

Dynamic sequence table of data structure (including game menu)

In the previous article, we talked about the static sequence table of data structure and the implementation of static sequence table. For details, see my previous article - > > > Static sequence table of data structure. We can know that the disadvantage of static sequence table is that because it uses fixed length array, it will waste ...

Added by chrbar on Fri, 24 Dec 2021 21:04:53 +0200

Detailed explanation of C language function pointer

C language function pointer 1, What is a function pointer 1. Understand function pointers Function pointer. First, according to its name, we can probably know that it is a pointer. What kind of pointer is it? Is a special pointer related to a function. We know that int*p is a pointer to an int variable and char*p is a pointer to a char vari ...

Added by markspec87 on Fri, 24 Dec 2021 18:09:16 +0200

Binary tree creation and traversal of data structure

Binary tree is a special tree data structure. This time, let's learn how to create a binary tree recursively and how to recursively traverse the binary tree. At the same time, the last preorder traversal is an example of non recursive traversal of the binary tree. To write code, you should know well that the structure of binary tree is more co ...

Added by academ1c on Fri, 24 Dec 2021 13:34:45 +0200

[C Advanced] 24, #pragma analysis

Summary1) #pragma is used to instruct the compiler to complete some specific actions# Many of the pointers defined by pragma are compiler specific, so they are not portable between different compilersThe preprocessor will ignore the #pragma instructions it does not recognizeDifferent compilers may interpret the same #pragma instruction in diffe ...

Added by foamypup on Fri, 24 Dec 2021 05:50:55 +0200

On the importance of algorithm in C language

Recently, I have been learning data structures and algorithms. I deeply feel that our language learning is always just a tool, and the method is the most important part. In this article, I will illustrate the importance of algorithm, that is, the idea of writing program, in the program through several examples. catalogue 1, Question 1 (pri ...

Added by ffdave77 on Fri, 24 Dec 2021 03:55:42 +0200

2021.12. 19 on the preliminary order of c language pointer

catalogue What is the pointer Pointer type The types of pointers are as follows: Meaning of pointer type: Field pointer Pointer operation Pointers and arrays Secondary pointer What is the pointer definition: Pointer is an important concept and characteristic in C language, and it is also a difficult part to master C language. ...

Added by naveendk.55 on Thu, 23 Dec 2021 20:43:59 +0200

Summary and Analysis of iOS Multithreaded Interview Questions

Preface In fact, before I wrote this blog, I was also looking up bad materials, but I found that many people on the Internet said that the summary of content was not correct, resulting in a lot of pits for myself, so I want to recapitulate it, make a reference for myself, and also review it. Of course, I may have something wrong, I hope it can ...

Added by alan543 on Thu, 23 Dec 2021 17:17:05 +0200

Some Tips of function

In mathematics, we often see functions, but what are the functions in C language? In Wikipedia, Functions are interpreted in this way: functions are also called subroutines (Subroutine, procedure, function, routine, method, subprogram, callable unit) is a part of code in a large program, which is composed of one or more statement blocks. It is ...

Added by noaksey2000 on Thu, 23 Dec 2021 12:25:37 +0200

C language strcat_s function - C language zero foundation tutorial

catalogue I strcat_ Introduction to s functionII strcat_s-function principleIII strcat_s function practiceIV Guess you like it Zero foundation C/C + + learning route recommendation: C/C + + Learning directory >> Introduction to basic C language I strcat_ Introduction to s function The previous article introduced the string splici ...

Added by Steven_belfast on Thu, 23 Dec 2021 12:02:11 +0200