C++ Reference: Standard C++ Library reference: C Library: cstdlib

C++官网参考链接:https://cplusplus.com/reference/cstdlib/

头文件 
<cstdlib> (stdlib.h)
C标准通用程序库

这个头文件定义了几个通用函数,包括动态内存管理、随机数生成、与环境的通信、整数算术、查找、排序和转换。
函数
字符串转换 
atof    Convert string to double (function)
atoi    Convert string to integer (function)
atol    Convert string to long integer (function)
atoll    Convert string to long long integer (function)
strtod    Convert string to double (function)
strtof    Convert string to float (function)
strtol    Convert string to long integer (function)
strtold    Convert string to long double (function)
strtoll    Convert string to long long integer (function)
strtoul    Convert string to unsigned long integer (function)
strtoull    Convert string to unsigned long long integer (function)
伪随机序列生成 
rand    Generate random number (function)
srand    Initialize random number generator (function)
动态内存管理 
calloc    Allocate and zero-initialize array (function)
free    Deallocate memory block (function)
malloc    Allocate memory block (function)
realloc    Reallocate memory block (function)
环境
abort    Abort current process (function)
atexit    Set function to be executed on exit (function)
at_quick_exit    Set function to be executed on quick exit (function)
exit    Terminate calling process (function)
getenv    Get environment string (function)
quick_exit    Terminate calling process quick (function)
system    Execute system command (function)
_Exit    Terminate calling process (function)
查找和排序 
bsearch    Binary search in array (function)
qsort    Sort elements of array (function)
整数算术 
abs    Absolute value (function)
div    Integral division (function)
labs    Absolute value (function)
ldiv    Integral division (function)
llabs    Absolute value (function)
lldiv    Integral division (function)
多字节字符 
mblen    Get length of multibyte character (function)
mbtowc    Convert multibyte sequence to wide character (function)
wctomb    Convert wide character to multibyte sequence (function)
多字节字符串 
mbstowcs    Convert multibyte string to wide-character string (function)
wcstombs    Convert wide-character string to multibyte string (function)
宏常量 
EXIT_FAILURE    Failure termination code (macro)
EXIT_SUCCESS    Success termination code (macro)
MB_CUR_MAX    Maximum size of multibyte characters (macro)
NULL    Null pointer (macro)
RAND_MAX    Maximum value returned by rand (macro)
类型
div_t    Structure returned by div (type)
ldiv_t    Structure returned by ldiv (type)
lldiv_t    Structure returned by lldiv (type)
size_t    Unsigned integral type (type) 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
C++ Standard Library Quick Reference by Peter Van Weert, Marc Gregoire 2016 | ISBN: 1484218752 | English | 206 pages PDF+EPUB This quick reference is a condensed reference guide to the essential data structures, algorithms, and functions provided by the C++ Standard Library. More specifically, this is a compact collection of essential classes and functions, used by C++ programmers on a daily basis. The C++ Standard Library Quick Reference features core classes for strings, I/O streams, and various generic containers, as well as a comprehensive set of algorithms to manipulate them. In recent years, the C++11 and C++14 standards have added even more efficient container classes, a new powerful regular expression library, and a portable multithreading library featuring threads, mutexes, condition variables, and atomic variables. Needless to say, it is hard to know and remember all the possibilities, details, and intricacies of this vast and growing library. This handy reference guide is therefore indispensable to any C++ programmer. It offers a condensed, well-structured summary of all essential aspects of the C++ Standard Library, including all aforementioned functionality. No page-long, repetitive examples or obscure, rarely used features. Instead, everything you need to know and watch out for in practice is outlined in a compact, to-the-point style, interspersed with well-chosen, clarifying examples. The book does not explain the C++ language or syntax, but is accessible to anyone with basic C++ knowledge. Even the most experienced C++ programmer though will learn a thing or two from it and find it a useful memory-aid. What You Will Learn • The essentials that the C++ Standard Library has to offer • How to use containers to efficiently store and retrieve your data • How to use algorithms to inspect and manipulate your data • How lambda expressions allow for elegant use of algorithms • What the standard string class provides and how to use it • What functionality the library provides for file and stream-based I/O • What smart pointers are and how to use them to prevent memory leaks • How to write safe and efficient multi-threaded code using the C++11 threading libraries

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

weixin_40186813

你的能量无可限量。

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值