在VC60想用标准库的如:vector的数组中的迭代器如iterator,不知各位有何见解。

解决方案 »

  1.   

    好像可以啊
    我在msdn找到了这个的说明。
      

  2.   

    这个是C的的标准库吗?
    好象不是吧?这是STL啊!
    好象要用namespace关键字的
      

  3.   

    这样写
    #include <vector>
    using namespace std ;
      

  4.   

    #include <vector.h>
    using namespace std ;
      

  5.   

    我这几天在写程序,天天和iterator打交道,用的就是vector
    下面是在用到vector的类头文件中包含的代码:
    -----------------------------------------------------
    #include <iostream>
    #include <fstream>
    #include <iomanip> // io format oper
    #include <vector>
    #include <list>
    using namespace std;
      

  6.   

    See the article below, FYI: http://www.codeproject.com/vcpp/stl/stl101.asp
      

  7.   

    应该多用STL,毕竟是在使用C++而不是C。
      

  8.   

    #include <vector.h>
    using namespace std ;