Virtual destructor

Virtual destructor is used to prevent memory leak in the context of polymorphism.

Read more

Virtual Function

Virtual function, pure virtual function, abstract class

Read more

constexpr specifier

The constexpr specifier declares that it is possible to evaluate the value of the function or variable at compile time.

Read more

Learn OpenGL 3

Draw a triangle.

  • VBO: Vertex Buffer Object
  • VAO: Vertex Array Object
  • EBO: Element Buffer Object
  • Shader
Read more

How to interpret complex C++ variable declarations

From int* p to int (*(*p)[])()

C++ variable definition can be very complex when *, & and nested brackets exist. This tutorial lists some examples from easy to advanced level to help you walk you through each of them and understand how we should interpret them in a more systematic way.

Read more

家有小猫

记录下家里小猫一岁的成长历史

Read more