hi,
I've already found a problem, I bought a teach yourself book of C++ by Richard Riley and am understanding most of it but, none of the code given for examples work in Dev-C++ 5. I write the code into the compiler EXACTLY as shown, save it then Compile & run it. Now according to the book it should run perfect displaying "Hello World" in the prompt, but as you've probably guessed it didn't.
here is what i wrote:
/* hello.cpp - A First Test Program
Author: Richard, 28/11/99 */
#include <iostream.h>
int main()
{
cout << "Hello World\n";
return 0;
}
I get three errors:
Line: File:
31 C:\Dev-Cpp\include\c++\backward\iostream.h
4 C:\Dev-Cpp\Examples\My Examples\hello.cpp
2 C:\Dev-Cpp\include\c++\backward\backward_warning.h:32
Message:
1: In file included from C:/Dev-Cpp/include/c++/backward/iostream.h
2: from C:/Dev-Cpp/Examples/My Examples/hello.cpp
3: #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 <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
Please try this on yours, do you get errors?
anyone know why this happens or can work it out?
thanx.