|
hi plz help me
this is my programm
#include <iostream.h>
int main ()
{
cout << "Hello World!";
return 0;
}
the error shown by compiler (codeL::blocks v1.0 and bloodshed c++ both shows simular one)
Compiling: C:\Program Files\CodeBlocks\c1.cpp
In file included from C:/Program Files/CodeBlocks/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/backward/iostream.h:31,
from C:\Program Files\CodeBlocks\c1.cpp:1:
C:/Program Files/CodeBlocks/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/backward/backward_warning.h:32:2: 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.
C:\Program Files\CodeBlocks\c1.cpp:7:2: warning: no newline at end of file
Linking console executable: C:\Program Files\CodeBlocks\c1.exe
Process terminated with status 0 (0 minutes, 3 seconds)
0 errors, 2 warnings
<Added>
but this works
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
return 0;
}
what is wrong in first one tell me please
|
|
|
|
|
|
|
|