codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Problem in comiling  samsundar at 12:45 on Thursday, February 15, 2007
 

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








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  perl cgi and html links
•  Re: bar graphs
•  Perl Developers Guide
•  Submitting a parent form from a child window in IE 7
•  combo box
•  Problem in comiling
•  New to C++ need help
•  Re: Auto Mail Notification
•  Re: array copy


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007