Microsoft 与 GNU C/C++标准库实现
从实施的角度来看,哪一个更好、更清晰,可以推荐作为学习指南?在我看来,只需浏览那些 C 库(恕我直言,C++ 的东西变得丑陋)实现并摆弄它们,就可以真正学到很多东西,因为它们的设计和概念相当简单。 我期待看过这两种实现的人们给出公正的答案。
对于不知道的人来说,大多数 Microsoft C/C++ 库的实现是 可用于调试目的。您可以在 VC\crt\src\
下的 Visual Studio 安装文件夹中找到它们。例如。对于 VS2008:c:\Program Files\Microsoft Visual Studio 9.0\VC\crt\src
(假设您在 c:\Program Files\
中安装了副本)。
Which one is better and cleaner from an implementation stand point so that one can recommend as a study guide? The way i see it, one can really learn a lot by just looking through those C library(with C++ things get ugly imho) implementations and toying with them, since they are rather simplistic in design and concept.
I am expecting non-biased answers from people who have looked through both implementations.
For people who didn't know, most of Microsoft's implementation of the C/C++ libraries is available for debugging purposes. You can find them in your Visual Studio installation folder under VC\crt\src\
. Eg. for VS2008: c:\Program Files\Microsoft Visual Studio 9.0\VC\crt\src
(assuming you installed a copy in c:\Program Files\
).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我一直想知道为什么 Visual Studio 使用的 C++ STL 实现如此难以阅读,所以我不能肯定推荐它。我不知道其他实现。例如 STLPort
I always wondered why C++ STL implementation used by Visual Studio is so hard to read, so I cannot recommend it for sure. I don't know about others implementations. e.g. STLPort