Chinaunix首页 | 论坛 | 博客
  • 博客访问: 303387
  • 博文数量: 73
  • 博客积分: 1850
  • 博客等级: 上尉
  • 技术积分: 757
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-18 16:12
文章分类

全部博文(73)

文章存档

2011年(8)

2010年(26)

2009年(39)

分类: C/C++

2010-10-28 11:13:54

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).
阅读(1548) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~