gpt4 book ai didi

c++ - C/C++ 运行时库和 C/C++ 标准库的区别

转载 作者:IT老高 更新时间:2023-10-28 14:01:19 36 4
gpt4 key购买 nike

你们能告诉我它们之间的区别吗?

顺便问一下,有什么叫C++库或C库的吗?

最佳答案

C++ 标准库C 标准库 是 C++ 和 C 标准定义的库,提供给 C++ 和 C 程序使用。那是那些词的共同含义,我还没有见过它的另一个定义,C++本身是这样定义的:

The C++ Standard Library provides an extensible framework, and contains components for: language support, diagnostics, general utilities, strings, locales, containers, iterators, algorithms, numerics, and input/output. The language support components are required by certain parts of the C++ language, such as memory allocation (5.3.4, 5.3.5) and exception processing (clause 15).

C++ 运行时库C 运行时库 的使用并不相同。有人说运行时库是程序在 runtime 中使用的部分(例如,实现 std::type_info 的代码或支持信号处理程序的代码),而不是东西它们仅在编译时使用(如宏定义)。其他人说运行时库是在加载时动态链接到程序的库,而不是在编译时静态链接,尽管这种使用很少。共享库或动态链接库是更好的术语。

C++ LibraryC Library 是非常宽泛的术语。它们只是意味着库是用 C++ 和/或 C 编写的。

以上不仅限于C++和/或C。有python库,还有pythonStandard Library也是。

关于c++ - C/C++ 运行时库和 C/C++ 标准库的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/424549/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com