Bernd Strieder wrote:
Sukumar  R wrote:
a.cpp: In function `int main()':
a.cpp:6: `cout' undeclared in namespace `std'
a.cpp:6: `endl' undeclared in namespace `std'

BTW iostream.h is deprecated. When found, it provides iostreams in the
global namespace, not in the std namespace. So using std::cout in your
code would have failed anyway. This can be said without seeing the
source.

No, iostream.h is not "deprecated". It was never part of the standard, therefore it can't be deprecated.

The OP should be using #include <iostream>


_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to