|
这一个程序:
#include<iostream.h>
int Abc(int a, int b, int c)
{
return a+b+b*c+(a+b-c)/(a+b)+4;
}
void main(void)
{
cout << Abc(2,3,4) << endl;
}
我输入命令 g++ -o abc abc1.cpp
但显示的结果是
In file included from /usr/include/c++/3.2.2/backward/iostream.h:31, from abc1.cpp:1:/usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning: #warning This file includes atleast 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.abc1.cpp:9: `main' must return `int' |
|