13.13 — Static member variables
Review of static keyword uses In the lesson on file scope and the static keyword, you learned that static variables keep their values and are not destroyed even after they go out of scope. For example: #include <iostream> int generateID() { static int s_id{ 0 }; return ++s_id; } int …