一个奇怪的编译错误,头文件包含问题?
#include<stdio.h>
#include<queue>
using namespace std;[/i]如果是把这个更改为#include<queue.h> 用DEV C++就会出现编译错误[i]
int main()
{
queue<int> Q;
int n,temp;
scanf("%d",&n);
while(n--)
{
scanf("%d",&temp);
Q.push(temp);
}
while(!Q.empty())
{
char c = Q.front();
Q.pop();
printf("%c",c);
}
//getchar();
// getchar();
return 0;
}
编译提示信息是这样的
2 C:\Dev-Cpp\include\c++\3.3.1\backward\queue.h:31, from C:\Users\laicb\Desktop\机试\CPP\ASCII.cpp In file included from C:/Dev-Cpp/include/c++/3.3.1/backward/queue.h:31, from C:/Users/laicb/Desktop/机试/CPP/ASCII.cpp
2 C:\Dev-Cpp\include\c++\3.3.1\backward\backward_warning.h:32 #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.