vc中无法使用stl,无法编译通过~~~
#include <deque>
deque<int> a_line;
void main()
{
a_line.push_back(1);
}
--------------------Configuration: DS - Win32 Debug--------------------
Compiling...
test.cpp
g:\我的代码\data_structure\stl\test.cpp(3) : error C2143: syntax error : missing ';' before '<'
g:\我的代码\data_structure\stl\test.cpp(3) : error C2501: 'deque' : missing storage-class or type specifiers
g:\我的代码\data_structure\stl\test.cpp(3) : error C2143: syntax error : missing ';' before '<'
g:\我的代码\data_structure\stl\test.cpp(6) : error C2065: 'a_line' : undeclared identifier
g:\我的代码\data_structure\stl\test.cpp(6) : error C2228: left of '.push_back' must have class/struct/union type
Error executing cl.exe.