Just so that you know, standard C++ headers don't have any .h extension. Those are deprecated, pre-standard headers. There is no guarantee that they'll behave the same way on different implementations, or that they'll be present at all.
So, include , , , etc, and not , , , etc.
The same holds true for C headers. There is no guarantee that a complete C89 environment will be present. So include , , etc, and not , , etc.
Everything inside the aforementioned headers should be in the std namespace. So you can use something like:
std::cout << "hello world!" << std::endl;
or
using namespace std;
cout << "hello world!" << endl;
or
using std::cout;
using std::endl;
cout << "hello world!" << endl;
or even:
namespace s = std;
s::cout << "hello world!" << s::endl;
Remember that even C functions should now be in the std namespace (it's sadly not always implemented that way), so if you want to use say, printf, use std::printf (or one of the options above).
Hope this helps.