In C++, if you define this function in header.hpp
void incAndShow() { static int myStaticVar = 0; std::cout << ++myStaticVar << \" \" <<