It's not for C either. C has no such thing as an "iostream.h". The .h
versions of C++ standard headers are from the pre-standard days (and
from before namespaces). The standard versions of those headers have no
extensions, and in some cases have a slightly different name ("sstream"
instead of "strstream.h" for example). There are several reasons for the
header filename changes, one of which is to avoid confusion between the
C standard header "string.h" and the C++ one, "string" (the former
providing string manipulation functions, the latter providing the C++
std::string class).
Regards,
Paul
Alvin Thompson wrote:
> that header is only for c (not c++). use this instead for c++ code:
> #include <iostream>
>
> for c++, the standard header names are the same, minus the '.h' extension.
|