H
howarddevore2003
hi when i try to compile this:
#include <iostream.h>
int main()
{
int i;
cout << "Please enter an integer value: ";
cin >> i;
cout << "the value you entered is " << i;
cout << " and its double is " << i*2 << ".\n";
return 0;
}
...with g++ i get the following:
In file included from /usr/include/c++/3.3/backward/iostream.h:31,
from returnInt.cpp:1:
/usr/include/c++/3.3/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 <sstream> instead of
the deprecated header <strstream.h>. To disable this warning use
-Wno-deprecated.
my question here is this: is iostream.h depracated? Any thoughts on
this code you'd like to share?
thanks in advance for any replies!
howard
#include <iostream.h>
int main()
{
int i;
cout << "Please enter an integer value: ";
cin >> i;
cout << "the value you entered is " << i;
cout << " and its double is " << i*2 << ".\n";
return 0;
}
...with g++ i get the following:
In file included from /usr/include/c++/3.3/backward/iostream.h:31,
from returnInt.cpp:1:
/usr/include/c++/3.3/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 <sstream> instead of
the deprecated header <strstream.h>. To disable this warning use
-Wno-deprecated.
my question here is this: is iostream.h depracated? Any thoughts on
this code you'd like to share?
thanks in advance for any replies!
howard