有关标准库的问题。小弟不才,请高手指点。
如下程序,在VC6.0下为什么编译不通过?
#include<vector.h>int main()
{
int ia[ 6 ] = { -2, -1, 0, 1, 2, 1024 };
// °Ñia µÄ6 ¸öÔªËØ¿½±´µ½ivec ÖÐ
vector< int > ivec( ia, ia+6 );
return 0;
}
错误的原因是:Cannot open include file: 'vector.h': No such file or directory
是我的编译器有问题吗?vector 类不是随标准C++引入的标准库的一部分吗?直接include<vector.h>不行吗?难道还要重新编写vector的头文件吗?