C Language--Pointer
Pointer
What is a pointer?
In computer science, a Pointer is an object in a programming language whose value points directly to another place in the computer memory by using an address. Since the desired variable unit can be found by address, it can be said that the address points to the variable unit. Therefore, visualizing an addres ...
Added by bobbfwed on Wed, 26 Jan 2022 14:22:08 +0200
A group of people were playing the game of "three times out of the circle" and asked the last person to stay who was in the first place?
The meaning of this question is: there are n students reporting in a circle (1 ~ 3). The students who report to 3 quit the circle, and the remaining students continue to report until there is one left. Ask the remaining students what the original serial number is?
For example: seven students are playing this game
@ @ @ ...
Added by mimcris on Wed, 26 Jan 2022 11:55:46 +0200
[Turn on the C Language bald journey] Minesweeper Game
hello, minasan.
Remember who had great fun with big-bottom computers and playing minesweeping with friends before?
Take advantage of the last small tail at the end of the year to learn how to use C language to implement a simple version of the Minesweeper game!
Finished Product Display:
Catalog
1. Ideas Analysis
2. Included header fil ...
Added by fuzzy1 on Wed, 26 Jan 2022 08:55:52 +0200
LeetCode-241 question - C language implementation
1. Original title
[Title Source: LeetCode question 241] given a string containing numbers and operators, add parentheses to the expression and change its operation priority to get different results. You need to give the results of all possible combinations. Valid operation symbols include +, - and *. If the given string is 2 + 1-1 and there ar ...
Added by soto134 on Wed, 26 Jan 2022 08:51:00 +0200
C language: array
Array: An array composed of several related data items of the same type, which are stored together in order; An array is actually a collection of ordered data of the same type. Array name: Use a unified name to identify this group of data. This name is the array name. Array elements: Each data item that constitutes an array is called an element ...
Added by owaring on Wed, 26 Jan 2022 08:40:12 +0200
ESP32-C3 uses AsyncWebServer and HTTP client to realize dual computer communication
Because I just need to use dual computer communication to do my homework. By the way, I have found many methods on the Internet. I have tried to use Bluetooth communication, but I can only send strings (my personal ability can only reach this step, and I will further study Bluetooth communication later). The final implementation method is Async ...
Added by jharbin on Tue, 25 Jan 2022 22:26:55 +0200
Atcoder beginer contest 236 ABC code style format #ifdef#else#endif ios::sync_with_stdio tie XOR map container vector container
Eight minutes a, the first two, and then the third, the head card fell off. (record the tragic experience. Just keep grinding the problem.
I found this when thinking about the solution:
#ifdef LOCAL
#include "algo/debug.h"
#else
#define debug(...) 42
#endif
Learn the form:
#ifdef identifier
Segment 1
#else
Segment 2
#endif
It means: w ...
Added by elie on Tue, 25 Jan 2022 22:07:13 +0200
[C language] pointer to advanced terminal, callback function and qsort
Doodle, doodle, pointer to the advanced bus to the terminal 🚏 la
In this station, we will learn the callback function, the use of qsort and the simulation implementation
1. Callback function
definition:
A callback function is a function called through a function pointer. If you pass the pointer (address) of a function as a pa ...
Added by paulytrick on Tue, 25 Jan 2022 20:38:47 +0200
Handwriting memory pool and code analysis [C language]
The memory pool manages the heap
When a process executes, the operating system will allocate 0~4G of virtual memory space to the process. The parts that programmers can manage (allocate and release) are mmap mapping area and heap heap area, and the part managed by memory pool is the heap area of user process.
Why use a memory pool?
Memory po ...
Added by dotMoe on Tue, 25 Jan 2022 16:38:29 +0200
Learning basic knowledge of C language I (printf,scanf, array)
Summary of the knowledge points of the introductory programming course that everyone who studies geek time can learn
First question digit output
requirement
Geek time: an introduction to programming that everyone can learn. Lecture 2, thinking problem: digit outputCalculate the number of digits in the decimal representation of an input ...
Added by nitediver on Tue, 25 Jan 2022 13:06:17 +0200