Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: STL VC++
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 18:39pm
Rate this: bad
good
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:
http://stdcxx.apache.org/[^].
 
See also:
http://en.wikipedia.org/wiki/Standard_Template_Library[^].
 
—SA
  Permalink  
Comments
adityarao31 at 30-Jun-12 0:05am
   
Does I have add reference any library's for using STL in VC++ ?
Sergey Alexandrovich Kryukov at 30-Jun-12 13:01pm
   
Sure; it usually requested when you are adding the project from template.
--SA
adityarao31 at 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 or #include
Sergey Alexandrovich Kryukov at 30-Jun-12 13:03pm
   
Check project options to see if everything is properly referenced. Must be:
#include <vector>
Not "vector.h".
--SA
Rate this: bad
good
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>
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 350
1 Jochen Arndt 190
2 Richard MacCutchan 135
3 Sergey Alexandrovich Kryukov 130
4 DamithSL 95
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 30 Jun 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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