C++測試碰壁系列2(關于VECTOR),HELP!~
#include <iostream.h>
#include <fstream.h>
#include <vector>
void main()
{
int seq_size=20;
//vector<int> pell_seq(seq_size);
}
編譯後為什麼會出現以下錯誤的?
--------------------Configuration: VC_TEST_ARRAY_1 - Win32 Debug--------------------
Compiling...
VC_TEST_ARRAY_1.cpp
C:\TEST\VC_TEST_ARRAY_1.cpp(7) : error C2065: 'vector' : undeclared identifier
C:\TEST\VC_TEST_ARRAY_1.cpp(7) : error C2062: type 'int' unexpected
Error executing cl.exe.
VC_TEST_ARRAY_1.obj - 2 error(s), 0 warning(s)