关于命名空间
下面这段代码为什么在vc6通不过呢?我用别的编译器是可以通过的,是不是编译器问题?程序代码:
#include <iostream> #include <string> #include <vector> int main(void) { using std::string; using std::vector; vector<string> svec; vector<string>::iterator iter = svec.begin(); return 0; }
vc6中提示:E:\练习文件\【C++】\练习2.cpp(14) : error C2653: 'vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<cha
r> > > >' : is not a class or namespace name