C + + overloaded self increasing and self decreasing operators

C + + overloaded self increasing and self decreasing operators Self increasing operator + + and self decreasing operator – both are unary operators, and their pre and post forms can be overloaded. With the basis of operator overloading introduced earlier, we will directly explain the methods of overloading self increasing and self de ...

Posted by elite_prodigy on Sun, 20 Feb 2022 16:59:57 +0100

Chapter 3 STL - string container of common containers

3.1 string container 3.1.1 basic concept of string essence String is a c + + style string, and string is essentially a class The difference between string and char * char * is a pointerString is a class, which encapsulates char * inside. It is a container of char * type to manage this string characteristic string class encapsulates many me ...

Posted by james_kirk on Sun, 20 Feb 2022 16:36:19 +0100

Something new about C++11~

Introduction to C++11 In 2003, the C + + Standard Committee submitted a Technical Corrigendum (TC1) so that the name of C++03 has replaced the name of C++98 as the latest C + + standard before C++11. However, TC1 mainly fixes the loopholes in the C++98 Standard, and the core part of the language has not been changed. Therefore, people h ...

Posted by n1tr0b on Sun, 20 Feb 2022 16:10:53 +0100

Getting started with DirectInput keyboard programming

Getting started with DirectInput keyboard programming Game programming is not only the development of graphics program, but also includes many aspects. What this paper wants to talk about is how to use DirectInput to program the keyboard. In the DOS era, we are generally used to taking over keyboard interrupts to add our own processing code. ...

Posted by Sekka on Sun, 20 Feb 2022 15:29:07 +0100

Algorithm - violence enumeration

Basic conditions of enumeration: (1) time conditions: The first is the time condition. Generally speaking, the mainstream OJ can run operations with operands less than 10 ^ 7 under the time limit of 1000ms (generally, it is safer to operate within 10 ^ 6). Therefore, it is best to look at the data range before adopting the enumeration method ...

Posted by levidyllan on Sun, 20 Feb 2022 14:28:39 +0100

Full Permutation & permutation and combination to eliminate the difference of duplicate data

Full Permutation & permutation combination Realize the nuance of excluding duplicates This article expounds the full arrangement method and arrangement combination. The permutation and combination here uses an example to expand * * (different combinations of target values)** The first is full permutation, which is realized in two ways: 1 ...

Posted by newbtophp on Sun, 20 Feb 2022 12:24:07 +0100

C + + problem brushing journey

Introduction to LeetCode algorithm (day 7) Breadth first search / depth first search 733. Image rendering Solution: it's very hard to read the questions. Look at the examples and understand them. The general meaning is, for example, given the starting point pixel p ...

Posted by werushka on Sun, 20 Feb 2022 08:23:08 +0100

Enumeration, simulation and sorting

Example: consecutive interval number Xiao Ming has been thinking about such a strange and interesting question these days: How many consecutive intervals are there in an arrangement of 1 ∼ N? The definition of the serial interval here is: If all the elements in the interval [L,R] (i.e. the L-th to r-th elements of this arrangement) can ...

Posted by trrobnett on Sun, 20 Feb 2022 07:25:50 +0100

C + + template primary

Initial stage of formwork The initial stage of the template is understood from three aspects: 1. Generic programming 2. Function template 3. Class template Generic Programming If you use function overloading to operate on different data types, there are the following problems: 1. The code reuse rate is low. If a new type appears, you ...

Posted by Ph0enix on Sun, 20 Feb 2022 04:30:30 +0100

Preliminary understanding pointer

1. What is the pointer 2. Pointer and pointer type 3. Field pointer 4. Pointer operation 5. Pointers and arrays 6. Secondary pointer 7. Pointer array 1. What is the pointer? What is the pointer? Two key points of pointer understanding:        1. A poi ...

Posted by TutorMe on Sun, 20 Feb 2022 02:41:17 +0100