   <vector.h>
  okay the problem is like thisvc++ 6.0 contain a header file names "vector.h" i think is is kind of a template class but i dont know what exactly it is.i'll be thankfull if someone help me understanding the purpose of this classthanks in advance[edited by - tauqeer on February 14, 2004 10:16:18 AM]
http://www.google.com.au/search?q=std+vector+tutorial*clicks on Terran Wraith* Vectorrrr locked in![edit: damn automatic line breaks broke link]   [edited by - fractoid on February 14, 2004 10:01:45 AM];quote:Original post by Tauqeer  okay the problem is like thisvc++ 6.0 contain a header file names "vector.h" i think is is kind of a template class but i dont know what exactly it is.i''ll be thankfull if someone help me understanding the purpose of this classthanks in advance[edited by - tauqeer on February 14, 2004 10:16:18 AM] Open that file and take a look at it. ;  Are you sure it''s a "vector.h" and not "vector"?   Kami no Itte ga ore ni zettai naru! ;  tangentz i think its name is "vector" but when we include it we write "vector.h"anyhow i have looked at that file and some resources as well and now i know that its just another way to create your dynamic array if anyone else want to know. he can visit this linkhttp://seesar.lbl.gov/anag/chombo/refmanual/classVector.html   [edited by - tauqeer on February 14, 2004 1:47:44 PM];quote:Original post by Tauqeer  tangentz i think its name is "vector" but when we include it we write "vector.h"Nope. You should include it as #include <vector>   You should never let your fears become the boundaries of your dreams.    ;  And the link you posted up there is not STL documentation ;  Vector is a container, basically a dynamic array.  It''s part of the <a href="http://www.sgi.com/tech/stl/Vector.html">Standard Template Library</a>.  You should use #include <vector> not vector.h because the latter one is included for compatibility purposes with legacy code, the one with no extension is the newer one. ;  actually tangentz is correct,although you *can* #include <vector.h>, and it should work,it is better form to #include <vector>this is because the exact implementation may well be split across several files - and by including just "vector", the implemetation gets to decide specifically which files to include.that said,the vector in question is part of the standard template library, and is similiar to an array, only *way* better (imo).if you are interested, i would recommend reading:"the c++ standard library" by josuttis, and after that"effective stl" by meyersseriously, for a long time i wanted nothing to do with the stl, but when i finally got into it....well, now i can never go back to arrays and linked-lists again!   ---craig(at)cod3rz(dot)net ;quote:Original post by craigatcod3rzdotnet  actually tangentz is correct,although you *can* #include &lt;vector.h&gt;, and it should work,it is better form to #include &lt;vector&gt;this is because the exact implementation may well be split across several files - and by including just "vector", the implemetation gets to decide specifically which files to include.It should NOT work.  You cannot rely on the implementation having a file called vector.h, Visual C++ 6 for one, does not have a vector.h.  Nor is vector.h mentioned anywhere in the standard.  It has to be just vector.