Click here to Skip to main content
13,594,672 members
Rate this:
Please Sign up or sign in to vote.
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 29-Jun-12 17:39pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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:[^].

See also:[^].

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.
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".
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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

and by defining
std::vector<int> vec</int>
,instead of
vector<int> vec</int>

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.180621.3 | Last Updated 30 Jun 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100