Introduce There are two ways to implement thread according to official documentation and the first one is recommended How to quit a thread...
Thinking If we want to achieve this effect, we need to understand the mathematical model. When we zoom in, the object won't change its size. Actually,...
Let's look at matrix multiplication first vtkNew<vtkTransform> transformA; transformA->Translate(10, 0,...
Method 1(index-based iteration) std::vector<int> v = { 1, 2, 3, 4, 5}; for (size_t i = 0; i < v.size(); ++i) { std::cout << v[i]; } Method...
Preface There are two forms of enumeration in C++, enum and enum class. Enum is the pre-c++11 syntax, which means it is an unscoped enumeration. The...
What's an array An array is a data structure that is similar to a standard library-type vector, but it differs from a vector in the trade-off between...