No he doesn’t. And he doesn’t want iostream.h either. What version of Dev-C++ are you using?
I don’t remember if the current stable version includes a standards compliant compiler or not, but I know that the latest beta version does.
iostream.h is the old header, in which the namespace std is not declared. iostream is the new header, with which you should use the full namespace qualifier std::.
I suggest that you remove the line ‘using namespace std;’ and try to use std::cout instead.
Also you should remove the semicolon after the ending brace in the for-loop:
<iostream.h> is the old, non-standard library which does not include the namespace std.
<iostream> is the new, standard library which does include the namespace std.
With any reasonably new compiler you should be using <iostream>, which means you either have to include a using namespace statement or fully qualify the object name (std::cout, std::endl in this case).
MaxS, your code works because you:
Removed the trailing semicolon after the ending curly-brace in the for-loop
Use the old, non-standard, iostream.h library. That means you don’t need to qualify the namespace (std::object or ‘using namespace std’).
It is a good idea to use the standardised libraries.