0% found this document useful (0 votes)
6 views5 pages

Built in Method

The document outlines the differences between the C and C++ standard libraries, highlighting that C++ uses a 'c' prefix for header files and defines all elements within the std namespace. It notes specific changes in function declarations and behavior in C++, as well as the inclusion of additional types for certain functions. Additionally, it briefly describes various header files related to input/output, character handling, string manipulation, time, and mathematical operations.

Uploaded by

Siti Farhana
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)
6 views5 pages

Built in Method

The document outlines the differences between the C and C++ standard libraries, highlighting that C++ uses a 'c' prefix for header files and defines all elements within the std namespace. It notes specific changes in function declarations and behavior in C++, as well as the inclusion of additional types for certain functions. Additionally, it briefly describes various header files related to input/output, character handling, string manipulation, time, and mathematical operations.

Uploaded by

Siti Farhana
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/ 5

* Built in method

References: http://www.cplusplus.com/reference/cctype/
*C Language Library
* The C++ library includes the same definitions as the C language library organized in
the same structure of header files, with the following differences:
Each header file has the same name as the C language version but with a "c" prefix
and no extension. For example, the C++ equivalent for the C language header
file <stdlib.h> is <cstdlib>.
* Every element of the library is defined within the std namespace.
* Nevertheless, for compatibility with C, the traditional header
names name.h (like stdlib.h) are also provided with the same definitions within the
global namespace. In the examples provided in this reference, this version is used so
that the examples are fully C-compatible, although its use is deprecated in C++.

The are also certain specific changes in the C++ implementation:


wchar_t, char16_t, char32_t and bool are fundamental types in C++ and therefore
are not defined in the corresponding header where they appear in C. The same
applies to several macros in the header <iso646.h>, which are keywords in C++.
* The following functions have changes in their declarations related to the constness
of their parameters: strchr,strpbrk, strrchr, strstr, memchr.
* The functions atexit, exit and abort, defined in <cstdlib> have additions to their
behavior in C++.
* Overloaded versions of some functions are provided with additional types as
parameters and the same semantics, like float and long double versions of the
functions in the cmath header file, or long versions for abs and div.
*Input Output

Iomanip.h=IO manipulators
* <iomanip.h> -- for declaring several iostreams
manipulators that take an argument

<iomanip>
Provides facilities to manipulate output formatting, such
as the base used when formatting integers and the
precision of floating point values.

process.h is a C header file which contains function


declarations and macros used in working with threads
and processes. Neither the header file nor the functions
are defined by either the ANSI/ISO C standard or by
POSIX. Most C compilers that target DOS, Windows 3.1x,
Win32, OS/2, Novell NetWare or DOS extenders supply
this header and the library functions in their C library.
* Ctype.h = Character handling functions
* This header declares a set of functions to classify and
transform individual characters.

* String.h = C Strings
* This header file defines several functions to
manipulate C strings and arrays.

* Time.h = C Time Library


* This header file contains definitions of functions to get
and manipulate date and time information.

* Math.h =C numerics library


* Header <cmath> declares a set of functions to compute
common mathematical operations and transformations

You might also like