|
From: Abhijeet S <abh...@ms...> - 2004-08-16 16:44:11
|
Hi people,
My name is Abhijeet and I'm from Bombay,India.
I'm kind of new to DevC++ and I was trying to write a simple C++ program
and the following warning came up during compilation.
Any idea what this warning means.
This was the program I was trying to compile ( Please ignore the bad
programming or flaws if any )
#include <iostream.h>
class string
{
private:
char *str;
public:
void getstr()
{
cout<<"Enter the string : ";
cin>>str;
}
void putstr()
{
cout<<"Entered string was : "<<str;
}
};
int main()
{
string s1;
s1.getstr();
s1.putstr();
return 0;
}
and this was the warning
Compiler: Default compiler
Executing g++.exe...
g++.exe "D:\TCPP\OUTPUT\strtry.cpp" -o "D:\TCPP\OUTPUT\strtry.exe" -ansi
-traditional-cpp -I"C:\Dev-Cpp\include\c++"
-I"C:\Dev-Cpp\include\c++\mingw32" -I"C:\Dev-Cpp\include\c++\backward"
-I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
In file included from C:/Dev-Cpp/include/c++/backward/iostream.h:31,
from D:/TCPP/OUTPUT/strtry.cpp:1:
C:/Dev-Cpp/include/c++/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.
Execution terminated
Compilation successful
_________________________________________________________________
Sports, sports and more sports! Keep up with all the action!
http://www.msn.co.in/sports/ Stay connected with MSN Sports!
|