what does the header file contains?
header file
Collapse
X
-
Originally posted by anarghyawhat does the header file contains?
1. include librarys
2. prototypes of your functions in cpp file
you can see this
http://www.doc.ic.ac.u k/lab/secondyear/cstyle/node5.html
and this is an example
#include<iostre am>
#include<ctime>
#include<cstrin g>
#include<iomani p>
using namespace std;
int add(int[][6],char [][10],char[][10],char [][10],int);// to add new employ.
void display(int [][6],char [][10],char [][10],char [][10],int );// to display all employes
int Age(char[][10],int );// to calculate Age of employ.
void cmp_ID(int [][6],char [][10],char [][10],char [][10],int );// to compear ID
void cmp_N(int [][6],char [][10],char [][10],char [][10],int );// compar by name.
void swap(int [][6],char [][10],char [][10],char [][10],int );// swap between to employ.
void search(int [][6],char [][10],char [][10],int);// search.
int search_ID(int,i nt[][6],int );// search py ID of employ.
int search_L_N(char [],char [][10],int );//search by last name.
int search_F_N(char [],char [][10],int );// search by first name -
Comment