C++ Standard Library | Programiz D11 Phase 2 Skip to main content

C++ <cmath>

Returns Cosine of the Argument

Returns Sine of the Argument

Returns Inverse Sine a Number

Returns Inverse tangent a Number

Returns Tangent of the Argument

Returns Inverse Tangent of a Coordinate

Returns Inverse cosine a Number

Return ceiling value of number

Returns floor value of decimal number

Computes floating point remainder of division

Returns Natural Logarithm of a Number

Truncates the demical part of a number

Returns integral value nearest to argument

Returns Base 10 Logarithm of a Number

Breaks Number Into Integral and Fractional Part

returns exponential (e) raised to a number

returns base2 logarithm of a number

Computes Square Root of A Number

returns largest among two arguments passed

Returns absolute value of argument

Returns absolute value of an argument

returns a quiet NaN value

Returns remainder of x/y

Computes Power a Number

C++ <ctime>

returns processor time consumed by program

computes difference between two times in seconds

Returns current calendar time

converts calendar time to character representation

converts time since epoch to char representation

converts given time since epoch to UTC time

converts given time since epoch to local time

converts calendar time to multibyte character str

C++ <cstdlib>

Converts String to Double

Converts a string to number

converts string to unsigned long long int

Seeds pseudo random number for rand()

deallocates a block of memory

Allocates a block of unitialized memory

reallocates a block of previously allocated memory

returns pointer to environment variable passed

performs binary search on sorted array

sorts array using quick-sort algorithm

computes integral quotient and remainder of number

Returns absolute value of an integer

returns absolute value of long or long int number

allocates block of memory and initializes to zero

C++ <iostream>

accepts input from the user

displays output to output device i.e monitor

Writes to error stream

used for streaming logs

accepts input in wide character type

displays wide characters (Unicode) to screen

C++ <cstring>

Copies block of memory from source to destination

Copies character string from source to destination

copies character string from source to destination

appends copy of string to end of another string

Compare two strings

compares two strings lexographically

searches for character in string

finds first occurrence of a substring in string

Split string based on delimiter

copies character to beginning of string n times

Returns length of given string

C++ <cctype>

checks if given character is alphabet or not

checks if given character is a blank character

Checks if given character is a digit or not

checks if given character is lowercase

check if given character is punctuation character

check if given character is whitespace character

check if given character is uppercase or not

checks if given character is hexadecimal character

Converts a given character to lowercase

Converts a given character to uppercase

C++ <cstdio>

Deletes the specified file

renames or moves specified file

creates temporary file with auto-generated name

opens specified file

write a formatted string to file stream

read data from file stream

Write formatted string to stdout

Read data form stdin

write formatted string to character string buffer

Write a formatted string to buffer

read data from string buffer

reads the next character from given input stream

reads n number of characters from file stream

reads next character from stdin

reads line from stdin

writes a character to stdout

writes string to stdout

reads specified no. of characters from stream

writes specified number of characters to stream

flushes any buffered data to the respective device

opens a new file with stream associated to another

sets file position indicator for given file stream

reads next character from input stream