Sunday, 29 September 2013

C++ code compiles without include

C++ code compiles without include

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 <iostream>
using std::cout;
using std::endl;
int main()
{
cout << "Hello" << endl;
system("pause");
return 0;
}

No comments:

Post a Comment