Compilation principle LL analysis method C + + implementation of First set Follow set Select set prediction analysis table analysis process experimental report

Write before: Children's shoes that only need code Slide to the end That is; Children's shoes that need to learn from ideas Part IV That is; Want to figure out a few concepts of children's shoes Part III That's it. 1, Experimental purpose The LL (1) analysis program is compiled and debugged according to a grammar to analyze any in ...

Posted by macje on Sun, 24 Oct 2021 00:17:30 -0700

c + + Beginner step pit collection

2. Error prone points 1 When we use the scanf statement, many friends who have just started are prone to make the following mistakes when we first contact this statement. When using scanf ("% d", & n), we must add an & (address character). Incorrect usage: #include <bits/stdc++.h> using namespace std; int main() { ...

Posted by t.bo on Sat, 23 Oct 2021 20:00:55 -0700

c + + introduction notes (update slowly)

The author wrote in front Graduated, mechanical dog is too boring Pick up what you forgot before and continue to learn, starting with Xiaobai Slowly improve the notes of c + +. Where you write, you will slowly add before and after. The format is a little chaotic. Don't be angry with the reader As for what depth to learn and what to do in the en ...

Posted by bskauge on Sat, 23 Oct 2021 08:15:58 -0700

Introduction to C + + - Implementation of "match man Parkour" game

reference resources Interesting programming of C and C + + Games by Tong Jing Stick Run Mobile The idea of the game is that players control matchmaker's running and jumping through the keyboard to avoid bats and reach the end. The game map is randomly generated. With the increase of the number of levels, the game becomes more and more diffi ...

Posted by Christopher on Fri, 22 Oct 2021 22:50:41 -0700

Behavior tree -- [4] simple tree

This article describes how to build a simple tree to experience the use of the following running script tree. An understanding of tick Suppose you want to do two things in order, find the goal and grasp the goal (you can't grasp it until you find it first). The plan is as follows, PS: the top two layers can be regarded as strategy (gene ...

Posted by 182x on Fri, 22 Oct 2021 21:05:26 -0700

[C language] ☀️ Dynamic memory management and related functions

catalogue 1, Why is there dynamic memory allocation 2, Dynamic memory function   malloc and free calloc realloc 1, Why is there dynamic memory allocation   There are two ways to open up space we have learned before: int main() { int a = 5; char ch = 'b'; int arr[20] = { 0 }; } The above ways of developing memory are tha ...

Posted by r.smitherton on Fri, 22 Oct 2021 20:10:50 -0700

Chapter 5 DirectX lighting, materials and textures

In the computer three-dimensional world, if you want to simulate a real object and make its surface look more realistic, you need to use the "texture mapping" technology. In short, it is a way to map 2D images onto 3D objects. Generally speaking, texture is one or more 2D images representing the surface details of an object, also know ...

Posted by aftabn10 on Fri, 22 Oct 2021 01:47:57 -0700

Chapter 5 DirectX lighting, materials and textures

Using lighting in 3D scene is very simple. We don't need to assign color values to each vertex of the model object. As long as we use some kind of lighting and set the material of the model object, Direct3D will calculate the color value of each vertex according to the lighting model algorithm to make the model produce color. As we have roughly ...

Posted by marlonbtx on Fri, 22 Oct 2021 01:23:30 -0700

Standard template library for solving algorithm problems

Monotone stack handles the problem of size comparison in the overall O(n) time by maintaining the monotonic increment (decrement) of the value in the stack. 739 daily temperature Given the daily temperature, it is required to wait a few days for each day to wait for a warmer day. If there is no warmer weather after that day, it is recorded as ...

Posted by r3dk1t on Thu, 21 Oct 2021 22:53:03 -0700

Lamda expression, parafunction (function object)

Introduction of Lambda expression Some function object classes are only used to define an object, and this object is used only once, which is a bit wasteful. Moreover, defining a function object class and using it can be far apart, and it can be cumbersome to see exactly what its operator() member function does. For function object classes th ...

Posted by munkee on Thu, 21 Oct 2021 09:41:01 -0700