ISO C++ forbids declaration of 'vector' with no..

1708阅读 0评论2010-10-28 kingliang123
分类:C/C++

ISO C++ forbids declaration of 'vector' with no type:

1. Failure to post complete, compilable code.
2. Failure to include the proper header (#include ) - unless,of course, it's in the code you forgot to post.
3. Failure to qualify your reference to vector. It's std::vector (unless you've previously included: using std::vector;

And please don't put "using namespace std;" in the header file (just in
case you were tempted).
上一篇:firefox4 与先前版本 共存
下一篇:C++中的虚函数和纯虚函数用法