Loading....
Coupon Accepted Successfully!

 

ANSI / ISO (“Include”) Files

The ANSI/ISO committee has introduced a new style for header files: the header file now without the extension .h.

Example

#include<iostream>

#include<vector>

In previous examples, we frequently used the header files given above. However, the conventional method <iostream.h> is also valid. A few header files are renamed; for example, <limit.h> with <climit>, math.h> with <cmath>, <stdio.h> with <cstdio>, and so on. Only a few names are listed in Table 21.2.

128674.jpgTable 21.2 ANSI/ISO header file names

C header files

C++ header files(new style)

<cstring>

<typeinfo>

<ctime>

<string>

<cstdlib>

<new>

<cassert>

<defines>

<cctype>

<sstream>

<cerrno>

<ostream>

<cfloat>

<iostream>

<climits>

<ios>

<cmath>

<iomanip>

Turbo C++ Header (“Include”) Files

Table 21.3 contains a few frequently used names of header files of Turbo C++. The list is very exhaustive. You can view the complete list of header files through Help menu (contents option) present in Turbo C++ editor.

128677.jpgTable 21.3 Turbo C++ header files

iostream.h

complex.h

strstrea.h

constream.h

fstream.h

bcd.h

process.h

generic.h

string.h

stdlib.h

iomanip.h

values.h

math.h

new.h

float.h





Test Your Skills Now!
Take a Quiz now
Reviewer Name