0% found this document useful (0 votes)
42 views

CPP - Funçoes Header

The document describes several C++ header files and their functions. It summarizes the purpose and some key functions of the <iostream>, <cmath>, <cstring>, and <ctime> header files. <iostream> contains functions for input/output streams. <cmath> declares mathematical functions like sqrt(). <cstring> works with C-style strings. <ctime> contains functions for working with dates and times.

Uploaded by

latbal7171
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

CPP - Funçoes Header

The document describes several C++ header files and their functions. It summarizes the purpose and some key functions of the <iostream>, <cmath>, <cstring>, and <ctime> header files. <iostream> contains functions for input/output streams. <cmath> declares mathematical functions like sqrt(). <cstring> works with C-style strings. <ctime> contains functions for working with dates and times.

Uploaded by

latbal7171
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

C++ header files

<iostream>

functions for standard Input/Output.

C++ cerr

writes to error stream

C++ cin

accepts input from user

C++ clog

used for streaming logs

C++ cout

displays output to output device i.e monitor

C++ wcerr

prints to error stream as wide character type

C++ wcin

accepts input in wide character type

C++ wclog

writes to log stream with wide character

C++ wcout

displays wide characters (Unicode) to screen

<cmath>

The C++ <cmath> header file declares a set of functions to perform mathematical operations such
as: sqrt() to calculate the square root, log() to find natural logarithm of a number etc.

C++ acos()

Returns Inverse cosine a Number

C++ acosh()

returns hyperbolic cosine of a number

C++ asin()

Returns Inverse Sine a Number

C++ asinh()

returns arc hyperbolic sine of a number


C++ atan()

Returns Inverse tangent a Number

C++ atan2()

Returns Inverse Tangent of a Coordinate

C++ atanh()

returns arc hyperbolic tangent of a number

C++ cbrt()

Computes Cube Root of a Number

C++ ceil()

Return ceiling value of number

C++ cmath abs()

returns absolute value of an argument

C++ copysign()

returns num with value of first and sign of second

C++ cos()

Returns Cosine of the Argument

C++ cosh()

Returns Hyperbolic Cosine of an Angle

C++ exp()

returns exponential (e) raised to a number

C++ exp2()

Returns 2 raised to a Number

C++ expm1()

Returns e raised to Power Minus 1

C++ fabs()

returns absolute value of argument

C++ fdim()

Returns Positive Different Between Arguments

C++ floor()

Returns floor value of decimal number

C++ fma()

Returns Fused Multiply–Accumulate

C++ fmax()

returns largest among two arguments passed


C++ fmin()

returns smallest among two given arguments

C++ fmod()

Computes floating point remainder of division

C++ frexp()

breaks float to its binary significand

C++ hypot()

Returns Square Root of sum of square of Arguments

C++ ilogb()

returns integral part of logarithm of |x|

C++ ldexp()

returns product of x and 2 raised to the power e

C++ llrint()

Rounds argument using current rounding mode

C++ llround()

Rounds argument to nearest long long int value

C++ log()

Returns Natural Logarithm of a Number

C++ log10()

Returns Base 10 Logarithm of a Number

C++ log1p()

returns natural logarithm of x+1.

C++ log2()

returns base2 logarithm of a number

C++ logb()

returns logarithm of |x|

C++ lrint()

Rounds argument using current rounding mode

C++ lround()

Returns the long int value nearest to the argument

C++ modf()

Breaks Number Into Integral and Fractional Part

C++ nan()

returns a quiet NaN value


C++ nearbyint()

Rounds argument to using current rounding mode

C++ nextafter()

returns next value after x in direction of y

C++ nexttoward()

returns next value after x in direction of y

C++ pow()

Computes Power a Number

C++ remainder()

Returns remainder of x/y

C++ remquo()

Computer remainder and stores quotient of x/y

C++ rint()

Rounds argument using current rounding mode

C++ round()

Returns integral value nearest to argument

C++ scalbln()

Scales x by FLT_RADIX to the power n

C++ scalbn()

Scales x by FLT_RADIX to the power n

C++ sin()

Returns Sine of the Argument

C++ sinh()

returns hyperbolic sine of an angle

C++ sqrt()

Computes Square Root of A Number

C++ tan()

Returns Tangent of the Argument

C++ tanh()

returns hyperbolic tangent of an angle

C++ trunc()

Truncates the demical part of a number

<cstring>
work with C style string (null terminated byte strings).

C++ memchr()

searches for character in string

C++ memcmp()

compares two pointer objects

C++ memcpy()

copies block of memory from source to destination

C++ memmove()

copies memory even if there is overlapping blocks

C++ memset()

copies character to beginning of string n times

C++ strcat()

appends copy of string to end of another string

C++ strchr()

searches for character in string

C++ strcmp()

compare two strings

C++ strcoll()

compares two null terminated string

C++ strcpy()

copies character string from source to destination

C++ strcspn()

searches a string for characters in another string

C++ strerror()

gives description of system error code

C++ strlen()

returns length of given string

C++ strncat()

appends string to end of another string

C++ strncmp()

compares two strings lexographically

C++ strncpy()

copies character string from source to destination

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++ strxfrm()

transform byte string into implementation def form

<ctime>

date and time. For example, the time() function is used to get the current time.

C++ asctime()

converts calendar time to character representation

C++ clock()

returns processor time consumed by program

C++ ctime()

converts time since epoch to char representation

C++ difftime()

computes difference between two times in seconds

C++ gmtime()

converts given time since epoch to UTC time

C++ localtime()

converts given time since epoch to local time

C++ mktime()

converts local calendar time to time since epoch

C++ strftime()

converts calendar time to multibyte character str

C++ time()

returns current calendar time

You might also like