<iostream> or <iostream.h> ??

This is a discussion on <iostream> or <iostream.h> ?? within the C++ Programming forums, part of the General Programming Boards category; when i compile a c++ program using <iostream.h> i get the following warning
C:\Program Files\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32.4. 5\..\..\..\..\include\c++.4.5\backward\backward_ warning.h|32|warning: #warning This file ...

<iostream> or <iostream.h> ??

when i compile a c++ program using <iostream.h> i get the following warning

C:\Program Files\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\3.4. 5\..\..\..\..\include\c++\3.4.5\backward\backward_ warning.h|32|warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.|
||=== Build finished: 0 errors, 1 warnings ===|

but when i replace it by <iostream> it shows the error:

C:\Documents and Settings\Machine\Desktop\Untitled1.cpp||In function `int main()':|
C:\Documents and Settings\Machine\Desktop\Untitled1.cpp|5|error: `cout' was not declared in this scope|
C:\Documents and Settings\Machine\Desktop\Untitled1.cpp|5|error: `endl' was not declared in this scope|
||=== Build finished: 2 errors, 0 warnings ===|

i am using codeblocks. what should i do?
to be more specific can anyone tell why the compiler cant accept <iostream> though it suggests to do so.

Manasij Mukherjee | gcc-4.9.2 @Arch Linux Slow and Steady wins the race... if and only if :1.None of the other participants are fast and steady.
2.The fast and unsteady suddenly falls asleep while running !

Manasij Mukherjee | gcc-4.9.2 @Arch Linux Slow and Steady wins the race... if and only if :1.None of the other participants are fast and steady.
2.The fast and unsteady suddenly falls asleep while running !