Hierarchical design of C language log

Original link: https://blog.csdn.net/dosthing/article/details/82828937 preface C language is a process oriented programming language. Its program design process is to write a series of functions according to the business requirements of the upper layer, supplemented by if, for, while, switch and other process control statements to realize ...

Posted by cwncool on Mon, 27 Dec 2021 02:13:16 +0100

Introduction to C language memory management

What is memory Macroscopically, the memory that stores data can be called memory. The memory discussed in this chapter is the memory for the program in program design. Memory is used to store data, which can be understood as arranged in boxes. Boxes are used to store data, but the boxes themselves have numbers and are continuous. This num ...

Posted by r3drain on Sun, 26 Dec 2021 19:52:19 +0100

[Algorithms] Use exercises to teach you how to use dynamic planning, super-detailed, at a glance!! Recommended collection!!

As long as you keep reading it, I'm sure you can learn it!! Preface Definition of Dynamic Planning (DP): Dynamic Planning is an extension of the idea of division, and in a general sense, it is the art of turning big things into small ones and small things into nothing. Dynamic planning has the following three characteristics: ...

Posted by johno on Sun, 26 Dec 2021 10:08:10 +0100

16, About IO stream separation

1. What is I/O stream separation? Recall the program we wrote before. In the first program, as long as we obtain a socket and successfully connect to the server, we can realize the data exchange with the server, and this data exchange is to send and receive data from the perspective of the client; The process of sending and receiving data ...

Posted by wemustdesign on Sun, 26 Dec 2021 07:25:58 +0100

Longest common subsequence (LCS) algorithm

The three methods can be used for reference, but the code part is written by yourself. Although the final running results are correct, it is inevitable that there will be some thoughtless places in this process. If you find some errors in the code, you are welcome to correct. At the same time, new ideas can also be put forward! The sequential ...

Posted by kokomo310 on Sun, 26 Dec 2021 06:10:38 +0100

Tan Haoqiang C language Chapter 4

What is arithmetic? What is relational operation? What is logical operation? Answer: arithmetic operation: addition, subtraction, multiplication and division; Relational operation: > < =; Logical operation: and or not; How to express "true" and "false" in C language? How does the system judge the "true" an ...

Posted by kingssongs on Sun, 26 Dec 2021 05:50:08 +0100

[C] 6. Complex structures and pointers

structural morphology Computer can solve the problems that can be calculated in reality. First, we should express the data of the real problemsTo store some information, define the corresponding variable with the corresponding type, and store the value in the variableAs long as it is a variable, it occupies a certain amount of space in memory ...

Posted by jhuedder on Sun, 26 Dec 2021 03:33:26 +0100

C/C + + string function

unrestricted Length of string strlen(const char* s) Returns the string length until '\ 0' is encountered in s #define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <string.h> int main() { char str[10] = "Hello"; int len = strlen(str); printf("%d\n", len);//The calculated length is 5, and '\ 0' will not be cal ...

Posted by andysez on Sat, 25 Dec 2021 22:34:03 +0100

[opencv] the role of Keys in CommandLineParser

I The role of CommandLineParser This class belongs to one of many classes in opencv, which is used to parse the command line. When (int argc,char** argv) in the main function receives the input parameter, it can parse the input command through CommandLineParser to make different responses. One of the advantages of this parsing class is that wh ...

Posted by e11even on Sat, 25 Dec 2021 19:45:06 +0100

Explanation of stack (the most classic I've ever seen)

1. Preliminary knowledge - program memory allocation The memory occupied by a program compiled by C/C + + is divided into the following parts: Stack - it is automatically allocated and released by the compiler to store the parameter values of functions, the values of local variables, etc. its operation mode is similar to the stack in the dat ...

Posted by netpants on Sat, 25 Dec 2021 14:53:34 +0100