How to fix compile error ""vector"does not name a type"
在编译C++源文件时,有可能会遇到如下的编译Error:"vector"does not name a type遇到这种情况,有可能是在使用vector时,没有作如下两件事情:1.#include <vector.h>2. using std::vector;检查一下,这两件事情,是哪一件没有做,缺哪个补哪个。注意:不要在头文件中做这件事情,务必在源文件中修改。...