C++ - Problem mit static - Variable