Maybe the problem lies in code that you did not show, e.g., you forgot to #include <stdlib.h> or there's undefined behaviour somewhere.
Maybe the problem lies in code that you did not show, e.g., you forgot to #include <stdlib.h> or there's undefined behaviour somewhere.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)