M
mmu2643
Hi,
I was trying to compile the following bit of code:
#include <iostream.h>
main(){
cout<<"Hello World!";
}
and I keep getting the following 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>.
I tried replacing iostream.h with iostream but then I get the error:
test4.cpp:5: error: `cout' undeclared (first use this function)
Can anyone please tell me why this is happening? I am using Dev-C++
from Bloodshed Software to compile the code.
TIA.
I was trying to compile the following bit of code:
#include <iostream.h>
main(){
cout<<"Hello World!";
}
and I keep getting the following 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>.
I tried replacing iostream.h with iostream but then I get the error:
test4.cpp:5: error: `cout' undeclared (first use this function)
Can anyone please tell me why this is happening? I am using Dev-C++
from Bloodshed Software to compile the code.
TIA.