Visual C ++ 6.0中是否包含STL? [英] Does STL is included in Visual C++ 6.0?

查看:70
本文介绍了Visual C ++ 6.0中是否包含STL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想学习STL库,它是我的新手.VC ++ 6.0中包含STL吗?
或需要下载.如果需要下载,请告诉我如何安装
它.我在Internet STL上找到了,但这只是一堆头文件.
请为此指导我.

解决方案

否,STL包含完整的源代码.据我所记得,它已包含在VC ++ 6.0中.它太旧了,我无法在MSDN中找到它.当前所有的文档都从Visual Studio 2005开始.

如果要下载另一个实现:
http://stdcxx.apache.org/ [ ^ ].

另请参见:
http://en.wikipedia.org/wiki/Standard_Template_Library [ 使用 命名空间 std;
并通过定义

 std :: vector< int> vec</int> 

而不是

 vector< int> vec</int> 


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.

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


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>


这篇关于Visual C ++ 6.0中是否包含STL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆