Can you have iostream and <cstdlib> in one source file?
I don't see why not. You don't have to say cstdlib you can just say stdlib
Yes, you can, but I disagree with post #2, second part.
cstdlib is C++'s version of stdlib.h. Therefore, use cstdlib in C++.
Originally Posted by Adak
io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
Originally Posted by Salem
You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.
Outside of your DOS world, your header file is meaningless.