header file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anarghya
    New Member
    • Oct 2006
    • 18

    header file

    what does the header file contains?
  • nbras
    New Member
    • Oct 2006
    • 4

    #2
    Originally posted by anarghya
    what does the header file contains?
    it's 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

    • Jai Vrat Singh
      New Member
      • Oct 2006
      • 18

      #3
      sometimes it cotains important macros as well

      Comment

      Working...