vc如何使用stl?
我做了个控制台程序,使用stl, 一切按照默认值。
#include "stdafx.h"
#include <list>
int main(int argc, char* argv[])
{
list<int> mylist;
return 0;
}
可编译时出现错误:错误如下:--------------------Configuration: test1 - Win32 Debug--------------------
Compiling...
test1.cpp
F:\Vc程序\stl\test1\test1.cpp(9) : error C2065: 'list' : undeclared identifier
F:\Vc程序\stl\test1\test1.cpp(9) : error C2062: type 'int' unexpected
Error executing cl.exe.
test1.exe - 2 error(s), 0 warning(s)
请教大虾指点。