Elementary C language - pointer

catalogue I What is the pointer II Pointer and pointer type 3. Field pointer 4. Pointer operation 5. Pointer and array 6. Secondary pointer 7. Pointer array I What is the pointer Understand pointer 1. Pointer is the number of the smallest unit in memory, that is, the address2. The pointer in spoken English usually refers to the p ...

Posted by roldahayes on Sat, 26 Feb 2022 15:41:28 +0100

Algorithm question brushing record (DAY5)

Who's in the Middle(poj2388) Original question link Method 1: Wrong solution: use set, but ignore that there are no duplicate elements in set!!! The error code is as follows: #include<iostream> #include<set> using namespace std; #define NMAX 10004 set<int> cow; int N; int main() { cin >> N; for (int i = 0;i < N;i+ ...

Posted by tharagleb on Sat, 26 Feb 2022 13:45:30 +0100

Elementary C language - array

catalogue Creation of one-dimensional array Initialization of one-dimensional array Use of one-dimensional array Storage of one-dimensional array in memory Creation of two-dimensional array Initialization of two-dimensional array Use of two-dimensional arrays Storage of two-dimensional array in memory Array out of bounds Array as fu ...

Posted by spetsacdc on Sat, 26 Feb 2022 13:13:52 +0100

Building the lightest vscode-C + + development environment on Windows

1. Preface When I first entered the industry, I directly used Qt for C + + software development. After getting used to Qt light color style, especially the theme of virtual function italics. Then turn to VS, whether the dark or light theme of vs makes the author feel strongly unaccustomed. Moreover, the installation of VS is sometimes cri ...

Posted by itpvision on Sat, 26 Feb 2022 06:13:51 +0100

String functions (strlen,strcpy,strcat,strcmp,strstr,strtok)

catalogue I strlen - string length 1. Function introduction 2. Simulation Implementation II strcpy - string copy 1. Function introduction 2. Simulation Implementation 3. strncpy  III strcat - string append 1. Function introduction 2. Simulation Implementation  3.strncat IV strcmp - string comparison 1. Function introduction 2. Sim ...

Posted by jana on Sat, 26 Feb 2022 06:00:27 +0100

Simple digit dp and understanding of leading 0

Essence of digital dp: A fast enumeration method, which satisfies the nature of dp, and then carries out memory search. Example: Niuke - Digital children Title Description: Jiufeng has been addicted to digital dp recently. On this day, he created another digital dp problem: Give an interval [l,r][l,r][l,r], find out how many numbers in this ...

Posted by nita on Sat, 26 Feb 2022 05:02:51 +0100

C + + Project: boost website site search

I Project requirements There is no search and navigation function for the boost website, which provides search function for the document search of the boost website II Forward index and inverted index Forward index is similar to the directory of books. We can find the corresponding content according to page number. Inverted index and for ...

Posted by lajollabob on Sat, 26 Feb 2022 01:29:25 +0100

UE4 generated.h file generation process simulation

In order to explore the reflection mechanism of UE4, let's start with simplicity and manually simulate generated H generation process to see what UHT has done. Take a very simple class as the analysis object UCLASS(meta=(IsBlueprintBase = "false")) class RPGGAME_API ARpgPlayer : public ARpgGameCharacter { public: GENERATED_BODY() public: ...

Posted by n8w on Fri, 25 Feb 2022 17:52:59 +0100

log4cpp source code reading: threading tool class

threading namespace Location: in the include/log4cpp/threading directoryThe corresponding classes are under the threading namespace. This namespace contains some thread synchronization classes and methods to get the current thread. There is also an implementation of thread scoped local variablesBecause thread is a system kernel object, and dif ...

Posted by spambadger on Fri, 25 Feb 2022 17:44:14 +0100

C++/SFML, object-oriented curriculum design, tank war

1, Design task and requirement analysis "Tank battle" is a plane shooting game developed by Namco game company in Japan. It was sold in 1985. The theme of the game is tank battle and defending the base, which belongs to the strategic online class. With the theme of World War II tanks, it not only retains the operability of shooting g ...

Posted by Canman2005 on Fri, 25 Feb 2022 15:45:54 +0100