Why I don\'t need to include cstdlib and how do I disable this? I\'m using Code::Blocks with GCC compiler on Windows 7.
#include
using std:
You don't need to include because it (or the part of it containing system()) was included by . It is unspecified whether or which other (standard) headers are included by standard headers. You cannot disable this behavior but should be aware of it to avoid portability problems between different standard library implementations.
You should not depend on this behavior and include yourself. You should also use std::system instead of the global system. Functions from headers are only guaranteed to be in the std namespace (the global ones, on the other hand, in the <*.h> headers).