Click here to Skip to main content
15,905,148 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to learn STL library,I am new to it.Does STL is included in VC++ 6.0
or I need to download.If I needed to download please let me know how to install
it. I found on internet STL ,but it is just bunch of header files.
Please Guide me for this.
Posted

My problem got solved after adding one line
C++
using namespace std;

and by defining
C++
std::vector<int> vec</int>
,instead of
C++
vector<int> vec</int>
 
Share this answer
 
No, STL is available in full source code. And it is included in VC++ 6.0, as far as I can remember that old stuff. It's so old that I failed to find it in MSDN. All present-day documentation starts with Visual Studio 2005.

If you want to download another implementation:
http://stdcxx.apache.org/[^].

See also:
http://en.wikipedia.org/wiki/Standard_Template_Library[^].

—SA
 
Share this answer
 
Comments
adityarao31 30-Jun-12 0:05am    
Does I have add reference any library's for using STL in VC++ ?
Sergey Alexandrovich Kryukov 30-Jun-12 13:01pm    
Sure; it usually requested when you are adding the project from template.
--SA
adityarao31 30-Jun-12 1:10am    
when I tried to use vector it gives following error

fatal error C1083: Cannot open include file: 'vector.h': No such file or directory
I also tried including #include <vector> or #include<vector.h>
Sergey Alexandrovich Kryukov 30-Jun-12 13:03pm    
Check project options to see if everything is properly referenced. Must be:
#include <vector>
Not "vector.h".
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900