C++ Thư viện chuẩn

Các chức năng của thư viện C++

C ++
C ++ sin ()
Trả về sin của đối số

C ++ cos ()
Trả về Cosine của đối số

C ++ asin ()
Trả về Inverse Sine một số

C ++ atan ()
Trả về tiếp tuyến nghịch đảo của một số

C ++ acos ()
Trả về nghịch đảo cosine một số

C ++ tan ()
Trả về tiếp tuyến của đối số

C ++ atan2 ()
C ++ sinh ()
Trả về tiếp tuyến nghịch đảo của một tọa độ

trả về sin hyperbol của một góc

C ++ ceil ()
Trả về giá trị trần của số

C ++ tanh ()
trả về tiếp tuyến hyperbol của một góc

C ++ fmod ()
Tính phần dư dấu phẩy động của phép chia

C ++ acosh ()
trả về cosin hyperbol của một số

C ++ asinh ()
trả về cung hyperbolic sin của một số

C ++ tầng ()
Trả về giá trị sàn của số thập phân

C ++ log ()
Trả về lôgarit tự nhiên của một số

C ++ atanh ()
trả về tiếp tuyến cung hyperbol của một số

C ++ trunc ()
Cắt bớt phần ma quái của một số

C ++ vòng ()
Trả về giá trị tích phân gần đối số nhất

C ++ lround ()
Trả về giá trị int dài gần đối số nhất

C ++ rint ()
Làm tròn đối số bằng cách sử dụng chế độ làm tròn hiện tại

C ++ llround ()
Làm tròn đối số đến giá trị int dài dài gần nhất

C ++ lrint ()
Làm tròn đối số bằng cách sử dụng chế độ làm tròn hiện tại

C ++ log10 ()
Trả về lôgarit cơ số 10 của một số

C ++ exp ()
trả về hàm mũ (e) được nâng lên thành một số

C ++ exp2 ()
Trả về 2 được nâng lên thành một Số

C ++ modf ()
Ngắt số thành phần tích phân và phân số

C ++ lân cậnint ()
Làm tròn đối số để sử dụng chế độ làm tròn hiện tại

C ++ ilogb ()
trả về phần tích phân của lôgarit của | x |

C ++ frexp ()
break float thành ý nghĩa nhị phân của nó và

C ++ scalbn ()
Cân x bằng FLT_RADIX theo lũy thừa n

C ++ ldexp ()
trả về tích của x và 2 được nâng lên thành lũy thừa e

C ++ expm1 ()
Trả lại e được nâng lên Power Minus 1

C ++ scalbln ()
Cân x bằng FLT_RADIX theo lũy thừa n

C ++ log1p ()
trả về logarit tự nhiên của x + 1.

C ++ logb ()
trả về logarit của | x |

C ++ log2 ()
trả về logarit cơ số 2 của một số

C ++ remquo ()
Phần còn lại của máy tính và lưu trữ thương số của x / y

C ++ cbrt ()
Tính toán gốc lập phương của một số

C ++ sqrt ()
Tính căn bậc hai của một số

C ++ fmax ()
trả về lớn nhất trong số hai đối số được truyền

C ++ tiếp theo ()
trả về giá trị tiếp theo sau x theo hướng của y

C ++ nexttoward ()
trả về giá trị tiếp theo sau x theo hướng của y

C ++ cạnh tranh ()
Trả về Căn bậc hai của tổng bình phương của các Đối số

C ++ fma ()
Trả về Hợp nhất Nhân – Tích lũy

C ++ fmin ()
trả về nhỏ nhất trong số hai đối số đã cho

C ++ copysign ()
trả về num với giá trị của đầu tiên và dấu hiệu của thứ hai

C ++ fdim ()
Trả về số dương khác nhau giữa các đối số

C ++ cosh ()
Trả về Cosine Hyperbolic của một góc

C ++ fabs ()
trả về giá trị tuyệt đối của đối số

C ++ nan ()
trả về một giá trị NaN yên tĩnh

C ++ cmath abs ()
trả về giá trị tuyệt đối của một đối số

C ++ llrint ()
Làm tròn đối số bằng cách sử dụng chế độ làm tròn hiện tại

C ++ phần còn lại ()
Trả về phần còn lại của x / y

C ++ pow ()
Tính toán một số

C ++
C ++ atof ()
Chuyển đổi chuỗi thành Double

C ++ strtol ()
Chuyển đổi một chuỗi thành số

C ++ atol ()
Chuyển đổi chuỗi thành số nguyên

C ++ strtod ()
trả về chuỗi float thành double

C ++ strtoll ()
chuyển đổi chuỗi thành int dài dài trong C ++

C++ strtoull()
converts string to unsigned long long int

C++ srand()
seeds pseudo random number for rand()

C++ free()
deallocates a block of memory

C++ malloc()
allocates a block of unitialized memory

C++ realloc()
reallocates a block of previously allocated memory

C++ atexit()
registers function to be called on termination

C++ at_quick_exit()
registers function and calls on quick termination

C++ getenv()
returns pointer to environment variable passed

C++ quick_exit()
causes termination without cleaning resources

C++ _Exit()
causes termination without cleanup tasks

C++ bsearch()
performs binary search on sorted array

C++ qsort()
sorts array using quick-sort algorithm

C++ div()
computes integral quotient and remainder of number

C++ cstdlib abs()
returns absolute value of an integer

C++ ldiv()
computes integral division of long int numbers

C++ llabs()
returns absolute value of a long long int data

C++ lldiv()
computes integral division of two long long int.

C++ labs()
returns absolute value of long or long int number

C++ mbtowc()
converts multibyte character to a wide character

C++ wctomb()
converts wide character to a multibyte character

C++ mblen()
determines size of a multibyte character

C++ mbstowcs()
converts multibyte char string to wide char seq

C++ wcstombs()
converts wide character string to multibyte seq

C++ calloc()
allocates block of memory and initializes to zero

C++
C++ cin
accepts input from user

C++ cout
displays output to output device i.e monitor

C++ cerr
writes to error stream

C++ clog
used for streaming logs

C++ wcerr
prints to error stream as wide character type

C++ wcin
accepts input in wide character type

C++ wcout
displays wide characters (Unicode) to screen

C++ wclog
writes to log stream with wide character

C++
C++ memcpy()
copies block of memory from source to destination

C++ memmove()
copies memory even if there is overlapping blocks

C++ strcpy()
copies character string from source to destination

C++ strncpy()
copies character string from source to destination

C++ strcat()
appends copy of string to end of another string

C++ memcmp()
compares two pointer objects

C++ strncat()
appends string to end of another string

C++ strcmp()
compare two strings

C++ strncmp()
compares two strings lexographically

C++ strchr()
searches for character in string

C++ memchr()
searches for character in string

C++ strcspn()
searches a string for characters in another string

C++ strpbrk()
search characters in one string in another string

C++ strrchr()
searches last occurence of a character in string

C++ strspn()
gives length of maximum initial segment

C++ strstr()
finds first occurrence of a substring in string

C++ strtok()
split string based on delimiter

C++ memset()
copies character to beginning of string n times

C++ strerror()
gives decfscription of system error code

C++ strlen()
returns length of given string

C++ strcoll()
compares two null terminated string

C++ strxfrm()
transform byte string into implementation def form

C++
C++ isalpha()
checks if given character is alphabet or not

C++ isblank()
checks if given character is a blank character

C++ iscntrl()
checks if given character is control character

C++ isdigit()
checks if given character is a digit or not

C++ isgraph()
checks if given character is graphic or not

C++ islower()
checks if given character is lowercase

C++ isprint()
check if given character is printable or not

C++ ispunct()
check if given character is punctuation character

C++ isspace()
check if given character is whitespace character

C++ isupper()
check if given character is uppercase or not

C++ isxdigit()
checks if given character is hexadecimal character

C++ tolower()
converts a given character to lowercase

C++ toupper()
converts a given character to uppercase

C++
C++ raise()
sends signal to the program

C++ signal()
sets error handler for specifiied signal

C++
C++ localeconv()
returns current locale formatting rules

C++ setlocale()
sets locale information for the current program

C++
C++ iswalpha()
checks if given wide character is an alphabet

C++ iswprint()
checks if given wide character can be printed

C++ iswblank()
checks if given wide character is blank character

C++ iswpunct()
checks if given wide character is punctuation

C++ iswcntrl()
checks if given wide char is control character

C++ iswspace()
checks if given wide character is wide whitespace

C++ iswgraph()
checks if wide char has graphical representation

C++ iswupper()
checks if given wide character is uppercase

C++ iswalnum()
checks if given wide character is alphanumeric

C++ iswlower()
checks if given wide character is lowercase

C++ iswxdigit()
checks if given wide character is hexadecimal num

C++ wctrans()
returns current transformation for wide character

C++ towlower()
converts given wide character to lowercase

C++ wctype()
returns wide character classification

C++ towupper()
converts given wide character to uppercase

C++ iswctype()
checks if given wide char has certain property

C++ towctrans()
transforms a given wide character

C++ iswdigit()
checks if given wide character is digit or not

C++
C++ rename()
renames or moves specified file

C++ tmpfile()
creates temporary file with auto-generated name

C++ remove()
deletes the specified file

C++ setbuf()
sets the internal buffer to be used for I/O

C++ tmpnam()
generates unique filename

C++ fclose()
closes given file stream

C++ fopen()
opens specified file

C++ scanf
read data form stdin

C++ fprintf()
write a formatted string to file stream

C++ fscanf()
read data from file stream

C++ printf()
write formatted string to stdout

C++ snprintf()
write formatted string to character string buffer

C++ sprintf()
write a formatted string to buffer

C++ sscanf()
read data from string buffer

C++ vfprintf()
write formatted string to file stream

C++ vprintf()
printf but takes args from vlist instead

C++ vsnprintf()
write formatted string to string buffer

C++ vsprintf()
write formatted string to a string buffer

C++ fgetc()
reads the next character from given input stream

C++ fgets()
reads n number of characters from file stream

C++ fputc()
writes character to given output stream

C++ fputs()
writes string to file stream

C++ putc()
writes character to given output stream

C++ putchar()
writes a character to stdout

C++ getchar()
reads next character from stdin

C++ gets()
reads line from stdin

C++ fgetpos()
gets current file position

C++ fsetpos()
sets stream file pointer to given position

C++ puts()
writes string to stdout

C++ fread()
reads specified no. of characters from stream

C++ fwrite()
writes specified number of characters to stream

C++ clearerr()
resets error flags and EOF indicator for stream

C++ feof() function
checks if file stream EOF has been reached or not

C++ ferror()
checks for errors in given stream

C++ ftell()
returns current position of file pointer

C++ perror()
prints error to stderr

C++ rewind()
sets file position to beginning of stream

C++ setvbuf()
change or specify buffering mode and buffer size

C++ fflush()
flushes any buffered data to the respective device

C++ freopen()
opens a new file with stream associated to another

C++ vfscanf()
read data from a file stream

C++ vsscanf()
read data from a string buffer

C++ ungetc()
push previously read character back to the stream

C++ fseek()
sets file position indicator for given file stream

C++ vscanf()
read data from stdin

C++ getc()
reads next character from input stream

C++
C++ fgetws()
reads specified num of wide characters from stream

C++ fputwc()
writes wide character to the given output stream

C++ fputws()
writes wide string except null wide char to output

C++ fwide()
set or query orientation of given file stream

C++ fgetwc()
reads next wide character from given input stream

C++ fwscanf()
reads wide character from file stream

C++ getwc()
reads next wide character from input stream

C++ fwprintf()
write formatted wide string to a file stream

C++ putwchar()
writes wide character to stdout

C++ vfwscanf()
read wide character string from a file stream

C++ swprintf()
write formatted wide string to wide string buffer

C++ vswprintf()
write formatted wide string to wide string buffer

C++ swscanf()
reads wide character from wide string buffer

C++ getwchar()
reads next wide character from stdin

C++ ungetwc()
push previously read wide character back to stream

C++ putwc()
writes wide character to the given output stream

C++ vfwprintf()
write formatted wide string to a file stream

C++ wprintf()
write formatted wide string to stdout

C++ wscanf()
reads wide character from stdin

C++ vswscanf()
read wide character string from wide string buffer

C++ vwprintf()
write formatted wide string to stdout

C++ vwscanf()
read wide character from stdin

C++ wcstol()
converts wide string float number to long int

C++ wcstold()
converts wide string float number to long double

C++ wcstok()
returns next token in null terminated wide string

C++ wcstod()
converts wide string float number to double

C++ wcstof()
converts wide string float number to float

C++ wctob()
converts wide character to single byte character

C++ mbrtowc()
converts narrow multibyte char to wide char

C++ wcsrtombs()
convert wide char seq to narrow multibyte char seq

C++ mbsinit()
describe initial conversion state of mbstate_t obj

C++ wcscat()
appends copy of wide string to the end of another

C++ mbsrtowcs()
convert narrow multibyte char seq to wide char seq

C++ wcschr()
searches for a wide character in a wide string

C++ btowc()
converts character to its wide character

C++ wcrtomb()
convert wide character to its narrow multibyte rep

C++ mbrlen()
determines size in bytes of a multibyte character

C++ wcsncmp()
compares specified number of wide char of strings

C++ wcscpy()
copies wide character string from source to dest

C++ wcscspn()
returns number of wide char before first occurence

C++ wcslen()
returns length of the given wide string

C++ wcsncat()
appends specified num of wide char to another str

C++ wcscmp()
lexicographically compares two wide string

C++ wcsstr()
finds first occurrence of wide substring in a str

C++ wcsncpy()
copies specified number of wide characters

C++ wcsxfrm()
transforms wide string to implementation defined

C++ wcspbrk()
searches for set of wide char in given wide string

C++ wcsrchr()
searches last occurrence of wide char in string

C++ wcsspn()
returns length of maximum initial segment

C++ wmemmove()
moves wide chars from codefly_src to dest

C++ wmemset()
copies single wide char for a certain num of time

C++ wmemchr()
searches for first occurrence of wide char

C++ wcsftime()
converts given date and time to wide character str

C++ wmemcmp()
compares wide chars of two wide strings

C++ wmemcpy()
copies specified num of wide char from codefly_src to dest

C++ wcstoul()
converts wide str of given base to unsigned long

C++ wcstoull()
converts wide string num to unsigned long long

C++ wcstoll()
converts wide string of specified base to int

C++ wcscoll()
compares two null terminated wide string

C++
C++ c32rtomb()
converts 32 bit char to narrow multibyte char

C++ mbrtoc16()
converts narrow multibyte char to 16 bit char

C++ c16rtomb()
converts 16 bit char to narrow multibyte char

C++ mbrtoc32()
converts narrow multibyte char to 32 bit char

C++
C++ longjmp() and setjmp()
restores previously saved environment

C++
C++ feclearexcept()
attempts to clear floating point exception flags

C++ feraiseexcept()
raises floating point exceptions specified

C++ fegetexceptflag()
gets floating point exception flags

C++ fesetexceptflag()
sets given floating point exceptions to the env

C++ fegetround()
gets round direction mode

C++ fegetenv()
store status of floating point env in an object

C++ fetestexcept()
tests floating point exception

C++ fesetround()
set rounding direction

C++ fesetenv()
set floating point environment

C++ feholdexcept()
saves and clear floating point status flags

C++ feupdateenv()
updates floating point environment

C++
C++ difftime()
computes difference between two times in seconds

C++ time()
returns current calendar time

C++ clock()
returns processor time consumed by program

C++ asctime()
converts calendar time to character representation

C++ ctime()
converts time since epoch to char representation

C++ localtime()
converts given time since epoch to local time

C++ gmtime()
chuyển đổi thời gian nhất định kể từ kỷ nguyên sang giờ UTC

C ++ mktime ()
chuyển đổi thời gian theo lịch địa phương thành thời gian kể từ kỷ nguyên

C ++ strftime ()
chuyển đổi lịch thời gian thành ký tự nhiềubyte str

How do I use C++ Thư viện chuẩn
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets









Gõ tìm kiếm nhanh...