Category:C++

  • The biggest difference between C + + pointer array and two-dimensional array

    Time:2022-5-5

    The following essay is about the description of pointer array and the biggest difference between pointer array and two-dimensional array. Pointer array The elements of the array are pointer type Example: using pointer array to store matrix 1 #include 2 using namespace std; 3 int main() { 4 int line1[] = { 1, 0, 0 […]

  • C + + pointer type function

    Time:2022-5-4

    The following essay will describe the functions of C + + pointer type. Original link: https://www.cnblogs.com/iFrank/p/14444379.html Pointer type function If the return value of a function is a pointer, the function is a pointer type function.    Definition form of pointer function Storage type * data type * function name ()    {// function body statement   } […]

  • C + + function pointer description

    Time:2022-5-3

    The following essay explains the usage of function pointers. Definition of function pointer: Definition form: Storage type data type (* function pointer name) () meaning: The function pointer points to the program code storage area Typical use of function pointer —– implement function callback Function called through function pointer For example, the pointer of a […]

  • [C + + advanced path] three methods for C + + to prevent header files from being repeatedly introduced!

    Time:2022-5-2

    Previously, we introduced in detail how to use macro definition (#ifndef / #define / #endif) in C language to effectively avoid repeated #include of header files. This method is also commonly used in C + + multi file programming. For example, the following is a C + + project with school H and student H […]

  • C + + dynamic memory allocation

    Time:2022-5-1

    The following essay is about C + + dynamic memory allocation. Dynamic memory request operator new new Type nameT(initialization parameter list) Function:During the execution of the procedure, the application is used for storageTThe memory space of the type object, and the initial value is assigned according to the initial value list. Result value:success:TPointer to the newly allocated […]

  • C + + Mobile Construction

    Time:2022-4-30

    The following essay gives the C + + mobile structure. In reality, there are many such examples. We transfer money from one account to another and use mobile phonesSIMTransfer the card to another mobile phone and cut the file from one location to another……Mobile construction can reduce unnecessary replication and improve performance. C++11The standard provides […]

  • Configure OpenGL (win10 + vs2019 + glad + glfw) and create your first OpenGL project

    Time:2022-4-28

    Before drawing a good effect, the first thing to do is to create an OpenGL context and an explicit window.Some function libraries have provided such functions, which can provide developers with a window and context to render.Glut, SDL, sfml and glfw are popular. Here we use glfw OpenGL related libraries Introduction to OpenGL related libraries […]

  • Mo learning notes team

    Time:2022-4-27

    For reprint, please bring this blog address:https://www.cnblogs.com/continue126/p/14450059.htmlAnd indicate the original author: @ blog Park: continue_ 1025, creation is not easy, please understand. Ordinary Mo team Introduce a small example \(zl\)My sister has a string of numbers. Because students are too bald, now he wants to ask you\(m(m≤1e5)\)Times, of which\(L\)reach\(R\)Number of interval occurrences\(3\)How many times and […]

  • Mo team learning notes

    Time:2022-4-26

    For reprint, please bring this blog address:https://www.cnblogs.com/continue126/p/14450059.htmlAnd indicate the original author: @ blog Park: continue_ 1025, creation is not easy, please understand. Ordinary Mo team Introduce a small example \(zl\)My sister has a string of numbers. Because students are too bald, now he wants to ask you\(m(m≤1e5)\)Times, of which\(L\)reach\(R\)Number of interval occurrences\(3\)How many times and […]

  • C + + 11 strong type enumeration

    Time:2022-4-25

    Enumeration is to define a category and enumerate the individuals under the unified category for code use. Defects of C + + 98 enumeration: Whether namedEnumeration namestillEnumerating members in types, bothGlobal scopeYes, itsThe scope is globalof Appears if the same enumeration member is defined in a different enumerationRedeclarationWrong. enum PUBLIC_COLOR { RED, YELLOW, GREEN }; […]

  • The right value semantics of modern C + +

    Time:2022-4-24

    For more interesting content, please pay attention to WeChat official account:Back end technology cabin The right value semantics of modern C + + Among the many features of modern C + +, the right value semantics (STD:: move and STD:: forward) is probably one of the most magical and difficult to understand. This paper briefly […]

  • C + + loop! Loop type + loop control statement + infinite loop!

    Time:2022-4-23

    C + + loop Sometimes, you may need to execute the same piece of code multiple times. Generally, statements are executed sequentially: the first statement in a function is executed first, followed by the second statement, and so on. Programming languages provide a variety of control structures that allow more complex execution paths. Circular statements […]