简单C++错误求助
#include<iostream>#include<vector>
using namespace std;
int main()
{
vector<int> b;
vector<int> f(9,9);
for(vector<int>::iterator x=f.begin();x!=f.end();++x)
b.push_back(f[*x]);
cout<<b<<endl;
return 0;
}
F:\VC6.0++\Microsoft Visual Studio\Common\MSDev98\Bin\7.cpp(10) : error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class std::vector<int,class std::allocator<int> >' (or there is no acceptable conversion)
执行 cl.exe 时出错.
错在哪里,谢谢