C language dynamic memory management

In C language, when we use arrays, we often have such a problem: when the array is declared, the length of the array must be specified, and the memory it needs is allocated at compile time. Sometimes, the space we open up is too small to meet our needs, and sometimes it is too large, resulting in a serious waste of space. So can we open up one ...

Posted by Hurklefish on Fri, 28 Jan 2022 12:46:34 +0100

The first stage of C language -- branching and circulation

Previously, we have a preliminary understanding of C language. I believe everyone has some understanding of C language. catalogue 1. Branch statement (select structure) 1.1if statement 1.2 switch statement 2. Circular statement 2.1 while loop 2.2 for loop 2.3do...while Loop 2.4 goto statement From the beginning of this chapter, we o ...

Posted by RunningUtes on Fri, 28 Jan 2022 11:23:51 +0100

A general method to solve the problem of Full Permutation by speaking C language

subject Five athletes participated in the 10m platform diving competition. They were asked to predict the result of the competition: Player A said: B second, I third; Player B said: I'm second, E is fourth; Contestant C said: I am the first and D is the second; Player D said: C finally, I'm third; Player E said: I'm fourth, A is first; Aft ...

Posted by adavis on Fri, 28 Jan 2022 08:26:47 +0100

k210 C language development-4 read and play fireworks video from sd card

k210 C language development-4 Let's start with the results map. I wish you all a happy New Year! Original video of station B The day before yesterday, I accidentally saw an activity of CSDN. I could see anything related to fireworks, and then I was going to play a fireworks video with k210. As a result, I found that this activity was to set o ...

Posted by racer x on Fri, 28 Jan 2022 02:51:28 +0100

Preliminary C + + - STL - string class, vector class and list class (use method + simulation implementation + test + idea analysis)

From today on, we officially enter the study of STL. Today we will focus on three classes -- string vector and list catalogue Introduction to STL STL version Six components of STL: Defects of STL: (understand) string class introduce Common structure description of string class 1. Common construction classes 2. Capacity operation ...

Posted by networkthis on Thu, 27 Jan 2022 19:20:15 +0100

C use of basic arrays and strings

1, One dimensional array Array is a continuous space in memory, and the type of each element is the same 1.1 definition of array The array subscript starts from 0, and the name of the array is a constant. If you directly output the name of the array, the result is the address of the first element in the array int array[10];//Define a on ...

Posted by pocobueno1388 on Thu, 27 Jan 2022 19:13:37 +0100

C language to achieve a simple minesweeping game

Basic idea: Create an array of laying mines and an array showing the number of mines near mines Random number arrangement Enter the array coordinates for mine sweeping. If it is a mine, the game will end. If it is not, the number of nearby mines will be displayed in this coordinate Cycle until the end of the game Key: The minesweepi ...

Posted by shoppingspree on Thu, 27 Jan 2022 17:40:18 +0100

[student achievement management information system _implementedin C language]

1. Demand analysis Student achievement management information system (1) It is implemented using structure array. N=100๏ผ› (2) Based on the structure array, the basic operations such as initialization, insertion, deletion and search are realized; (3) Using files to save and read student information. #define STUDSIZE 100 #define SCSIZE 3 st ...

Posted by tat on Thu, 27 Jan 2022 14:02:39 +0100

OpenSSL3.0 learning II encryption library algorithm acquisition CSDN creation punch in

๐Ÿ“’ Blog home page: Actor's blog ๐ŸŽ‰ Welcome to pay attention ๐Ÿ”Ž give the thumbs-up ๐Ÿ‘ Collection โญ Leave a message ๐Ÿ“ โค๏ธ Look forward to communicating together! ๐Ÿ™ The author's level is very limited. If you find an error, please let me know. Thank you! ๐ŸŒบ If you have any questions, you can communicate by private letter!!! ๐Ÿฅฆ Algorithm a ...

Posted by spiritssight on Thu, 27 Jan 2022 12:41:57 +0100

Please answer c + + - getting started C++

After learning the initial level of C language and the advanced level of C language, start to formally learn C + +. This paper mainly involves the introduction of C + +. The contents introduced are C + + keywords, namespaces, default parameters, IO, function overloading, inline functions, auto keywords, new for loops, nullptr and referenc ...

Posted by Davo on Thu, 27 Jan 2022 09:48:12 +0100