May 2012
Intermediate to advanced
679 pages
16h 56m
English
From our school days, we are familiar with functions like sin(x). Rather than forcing us to write code, for them, the language designers provide such common functions that are termed as library functions. For convenience, they are organized in various header files. The header files have conventionally “.h” extension. Table 2.9 lists useful header files and most common functions there in.
Table 2.9 Selected Header Files
| Header file | Important functions |
|---|---|
| math.h | sin, cos, log, floor, ceil |
| stdio.h | scanf, printf, gets, puts, getchar, putchar |
| stdlib.h | calloc, malloc, rand, srand |
| string.h | strcpy, strlen, strcmp |
A detailed list of all the header files supported by C++ with useful functions is described in section “Appendix”. ...
Read now
Unlock full access