C Language Game - Chess

Through the browsing of these blogs, I believe that everyone's programming skills have reached a stage. We can not just write some mathematical games to practice programming ability. A lot of mathematical thinking and operations are really needed behind programming, but we still have to come out and face a real program, how to write it? You mu ...

Added by sgaron on Mon, 20 Sep 2021 01:38:05 +0300

Data structures and algorithms

#Data structure and algorithm Introduction Logical structure Physical structure Talk about algorithm Algorithm time complexity Just tell you to pay attention to the highest order, then ignore the constant product of constant and order, and pay attention to enough data. The number of executions is ...

Added by Ryan0r on Sun, 19 Sep 2021 12:49:19 +0300

C++ STL summary string

1.string memory structure String is not a basic container. It is classified as a string Library in CppReference. In fact, it is std::basic_string. The bottom layer adopts the storage structure of vector, so the memory structure is the same as vector. 2.string capacity operation functionfunctionbool empty()Check whether the container is empt ...

Added by kendallkamikaze on Sun, 19 Sep 2021 01:31:18 +0300

Nonlinear optimization -- Application of NLopt algorithm and C + + Example

Before reading this article, I suggest reading it first This article , it talks about the principle of nonlinear optimization, that is, the concept of related terms, and then introduces the use method of NLopt, which is based on C language. This film introduces an example of NLopt in C + + language. Before the example, first introduce the ...

Added by mrjap1 on Sat, 18 Sep 2021 09:17:58 +0300

YBTOJ software installation

Question surface: Valley portal Algorithm elements: tarjan + tree dp Topic analysis: 1, General summary It can be found that the points in a ring must be selected at the same time, so it is easy to think of tarjan shrinking points. After shrinking, a DAG is formed. Due to the condition of the subject, d[i]=0 means that one software does not ...

Added by magicmoose on Fri, 17 Sep 2021 13:54:45 +0300

LLVM Clang Class Name Format Verification Plugin

Xcode written by LLVM Clang compiler for code class name format checking plug-in Source Code #include <iostream> #include "clang/AST/AST.h" #include "clang/AST/ASTConsumer.h" #include "clang/ASTMatchers/ASTMatchers.h" #include "clang/ASTMatchers/ASTMatchFinder.h" #include "clang/Frontend/CompilerInstance.h" #include "clang/Frontend/Fron ...

Added by jimrains on Fri, 17 Sep 2021 10:39:45 +0300

C + + Object Oriented Programming

C + + object oriented programming (5) 1. Concepts of inheritance and derivation Inheritance: when defining a new class B, if the class is similar to an existing class A (B has all the characteristics of a), you can take a as a base class and B as a derived class (also known as a subclass) of the base class. Derived classes are obtained by mo ...

Added by elpaisa on Fri, 17 Sep 2021 07:04:25 +0300

Fundamentals of algorithm - array

catalogue Knowledge points: Algorithm: 1. Binary search (loop invariant principle) Example 1: leetcode 704 binary search Example 2: leetcode 34. Find the first and last positions of elements in the sorted array Example 3: leetcode 69   Square root of x, using binary search 2. Double pointer Example 1: leetcode   27. Remove ele ...

Added by always_confused on Wed, 15 Sep 2021 00:29:49 +0300

C + + realize the complete source code sharing of the computer room reservation system!

Catalogue of series articles Tip: it is estimated that the reading time will be 20 minutes. If you study carefully and start from the complete needs, it is recommended that you study and realize it in one week. Computer room reservation system 1. Room reservation system requirements 1.1 system introduction The school has several co ...

Added by FluxNYC on Wed, 15 Sep 2021 00:20:15 +0300

c + + exception handling

When designing a program, usually the program will also make mistakes. Program errors can be divided into three types: syntax errors, logic errors and runtime errors Syntax errors occur during the compile and link phases Logical error is that we have a problem with the thinking of the code we are writing, and we can't meet the requirements. S ...

Added by morphboy23 on Tue, 14 Sep 2021 03:35:10 +0300